-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add integration for using
Erase
on members
- Loading branch information
1 parent
efe3fbd
commit e311a46
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/Integration/Integration/data/eraseAttribute/Members.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module EraseAttributeMembers | ||
|
||
open Fable.Core | ||
|
||
type input() = | ||
|
||
[<Erase>] | ||
member this.onChange | ||
with set (_: obj -> unit) = () | ||
|
||
|
||
type input with | ||
|
||
[<Erase>] | ||
member this.onChange2 set (_: obj -> unit) = () |
15 changes: 15 additions & 0 deletions
15
tests/Integration/Integration/data/eraseAttribute/Members.js.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { class_type } from "./fable_modules/fable-library-js.4.22.0/Reflection.js"; | ||
|
||
export class input { | ||
constructor() { | ||
} | ||
} | ||
|
||
export function input_$reflection() { | ||
return class_type("EraseAttributeMembers.input", undefined, input); | ||
} | ||
|
||
export function input_$ctor() { | ||
return new input(); | ||
} | ||
|
17 changes: 17 additions & 0 deletions
17
tests/Integration/Integration/data/eraseAttribute/eraseAttribute.fsproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<RollForward>Major</RollForward> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="Members.fs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Fable.Core" Version="4.2.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |