-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve duplicate field range (#11042)
- Loading branch information
Showing
5 changed files
with
46 additions
and
3 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
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
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,37 @@ | ||
class Main { | ||
static function main() { | ||
final foo:Foo = { | ||
a: 0, | ||
b: 0, | ||
c: 0, | ||
a: 0, | ||
} | ||
final foo = { | ||
a: 0, | ||
b: 0, | ||
c: 0, | ||
a: 0, | ||
} | ||
final foo:CFoo = { | ||
a: 0, | ||
b: 0, | ||
a: 0, | ||
} | ||
} | ||
} | ||
|
||
typedef Foo = { | ||
a:Int, | ||
b:Int, | ||
c:Int, | ||
} | ||
|
||
typedef FooAdd = { | ||
d:Int, | ||
} | ||
|
||
@:structInit | ||
class CFoo { | ||
var a:Int; | ||
var b:Int; | ||
} |
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,2 @@ | ||
--main Main | ||
--interp |
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,3 @@ | ||
Main.hx:7: characters 4-5 : Duplicate field in object declaration : a | ||
Main.hx:13: characters 4-5 : Duplicate field in object declaration : a | ||
Main.hx:18: characters 4-5 : Duplicate field in object declaration : a |