Skip to content

Commit

Permalink
[tests] Add test for #5214
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 21, 2025
1 parent 7e745c2 commit ab87249
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/misc/projects/Issue5214/Main.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class C<T:{a:Int}>{
var v:T;
public function new(v:T) this.v = v;
}

class Main {

static var ab:{a:Int,b:String} = {a:1,b:""};
static var c = new C(ab);
static var c1 = new C({a:1,b:""});

static function main(){
var c = new C(ab);
var c1 = new C({a:1,b:""});
}
}
1 change: 1 addition & 0 deletions tests/misc/projects/Issue5214/compile.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-main Main

0 comments on commit ab87249

Please sign in to comment.