-
-
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.
[typer] clean up field-level errors (#10896)
- Loading branch information
Showing
22 changed files
with
116 additions
and
76 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:5: characters 16-24 : Only extern functions may be overloaded on this target | ||
Main.hx:5: characters 16-24 : Invalid modifier: overload is only supported on extern functions |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:6: characters 2-10 : Constructors cannot be abstract | ||
Main.hx:6: characters 2-10 : Invalid modifier: abstract on constructor |
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,7 @@ | ||
abstract SerArray<S>(Array<S>) { | ||
public dynamic function onChange():Void {}; | ||
} | ||
|
||
class Main { | ||
static function main() {} | ||
} |
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 @@ | ||
Main.hx:2: characters 2-44 : Invalid modifier: dynamic on method of abstract |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main1.hx:2: characters 2-17 : v: Static final variable must be initialized | ||
Main1.hx:2: characters 2-17 : Static final variable must be initialized |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:6: lines 6-8 : opAssign: Assignment overloading is not supported | ||
Main.hx:6: lines 6-8 : Assignment overloading is not supported |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Main.hx:2: characters 2-7 : Static method cannot be final | ||
Main.hx:2: characters 2-7 : Invalid modifier combination: final + static | ||
Main.hx:9: lines 9-11 : Cannot override final constructor |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:6: characters 2-7 : Macro abstract constructors are not supported | ||
Main.hx:6: characters 2-7 : Invalid modifier: macro on abstract constructor |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main1.hx:2: characters 2-8 : extern modifier is not allowed on enum abstract fields | ||
Main1.hx:2: characters 2-8 : Invalid modifier: extern on field of enum abstract |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Main.hx:3: characters 2-40 : foo: 'override' is not allowed on 'static' functions | ||
Main.hx:4: characters 2-39 : bar: 'inline' is not allowed on 'dynamic' functions | ||
Main.hx:3: characters 2-40 : Invalid modifier combination: override + static | ||
Main.hx:4: characters 2-39 : Invalid modifier combination: dynamic + inline |
2 changes: 1 addition & 1 deletion
2
tests/misc/projects/Issue9619/abstract-dynamic/compile-fail.hxml.stderr
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:2: characters 2-52 : Abstract methods may not be dynamic | ||
Main.hx:2: characters 2-52 : Invalid modifier combination: abstract + dynamic |
2 changes: 1 addition & 1 deletion
2
tests/misc/projects/Issue9619/abstract-final/compile-fail.hxml.stderr
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:2: characters 26-42 : Abstract methods may not be final | ||
Main.hx:2: characters 26-42 : Invalid modifier combination: abstract + final |
2 changes: 1 addition & 1 deletion
2
tests/misc/projects/Issue9619/abstract-inline/compile-fail.hxml.stderr
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:2: characters 34-50 : Abstract methods may not be inline | ||
Main.hx:2: characters 34-50 : Invalid modifier combination: abstract + inline |
2 changes: 1 addition & 1 deletion
2
tests/misc/projects/Issue9619/abstract-static/compile-fail.hxml.stderr
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:2: characters 27-43 : Static methods may not be abstract | ||
Main.hx:2: characters 27-43 : Invalid modifier combination: abstract + static |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:2: characters 2-19 : x: Cannot declare member variable in abstract | ||
Main.hx:2: characters 2-19 : Cannot declare member variable in abstract |
2 changes: 1 addition & 1 deletion
2
tests/misc/projects/extern-overloads/not-not-extern/compile-fail.hxml.stderr
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:2: characters 2-10 : Only extern functions may be overloaded on this target | ||
Main.hx:2: characters 2-10 : Invalid modifier: overload is only supported on extern functions |
2 changes: 1 addition & 1 deletion
2
tests/misc/projects/extern-overloads/not-on-constructor/compile-fail.hxml.stderr
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 |
---|---|---|
@@ -1 +1 @@ | ||
Main.hx:2: characters 2-10 : Constructors cannot be overloaded on this target | ||
Main.hx:2: characters 2-10 : Invalid modifier: overload on constructor |
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