-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81b7ea9
commit ebb9c5d
Showing
11 changed files
with
111 additions
and
5 deletions.
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
19 changes: 19 additions & 0 deletions
19
...deFixTests/GenerateAbstractClassStubTests/can_generate_abstract_class_stub.net80.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,19 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
override this.Name: string = | ||
failwith "Not Implemented" | ||
() |
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
...bTests/can_generate_abstract_class_stub_with_another_member_with_attribute.net80.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,22 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
override this.Name: string = | ||
failwith "Not Implemented" | ||
|
||
[<CompiledName("yo")>] | ||
member x.Foo() = 1 | ||
() |
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
...ractClassStubTests/can_generate_abstract_class_stub_with_existing_override.net80.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,19 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
|
||
override this.Name = "Circle" | ||
() |
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
...bstractClassStubTests/can_generate_abstract_class_stub_without_trailing_nl.net80.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,19 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
override this.Name: string = | ||
failwith "Not Implemented" | ||
() |
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
...eFixTests/GenerateAbstractClassStubTests/inserts_override_in_correct_place.net80.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,19 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
override this.Name: string = | ||
failwith "Not Implemented" | ||
let a = 0 |
File renamed without changes.