-
-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[typer] remove check for extra fields on Const structures
- Loading branch information
Showing
4 changed files
with
23 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
Main1.hx:3: characters 19-33 : { b : Int, a : Int } has extra field b | ||
Main1.hx:3: characters 3-34 : { b : Int, a : Int } should be { a : Int } | ||
Main1.hx:3: characters 3-34 : { b : Int, a : Int } has extra field b | ||
Main1.hx:3: characters 19-33 : { b : Int, a : Int } has extra field b |
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,21 @@ | ||
package unit.issues; | ||
import unit.Test; | ||
|
||
class Issue9597 extends Test { | ||
function test() { | ||
var data = [ | ||
{name: 'Page A', uv: 4000, pv: 2400, amt: 2400}, | ||
{name: 'Page B', uv: 3000, pv: 1398, amt: 2210}, | ||
{name: 'Page C', uv: -1000, pv: 9800, amt: 2290}, | ||
{name: 'Page D', uv: 500, pv: 3908, amt: 2000}, | ||
{name: 'Page E', uv: -2000, pv: 4800, amt: 2181}, | ||
{name: 'Page F', uv: -250, pv: 3800, amt: 2500}, | ||
{name: 'Page G', uv: 3490, pv: 4300, amt: 2100} | ||
]; | ||
|
||
foo(data); | ||
utest.Assert.pass(); | ||
} | ||
|
||
static function foo<T:{uv:Int}>(data:Array<T>):Void {} | ||
} |