-
-
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.
* create type hole to see which tests fail * pair up ttps during definition unification, then check constraints * invert mapping to allow 1:N relationships
- Loading branch information
Showing
23 changed files
with
221 additions
and
35 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
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,14 @@ | ||
class Parent {} | ||
class Child extends Parent {} | ||
|
||
interface I { | ||
public function test<T:Parent>(t:T):Void; | ||
} | ||
|
||
class C implements I { | ||
public function test<T:Child>(t:T) { } | ||
} | ||
|
||
function main() { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
tests/misc/projects/Issue11411/MainArgumentVarianceGood.hx
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,14 @@ | ||
class Parent {} | ||
class Child extends Parent {} | ||
|
||
interface I { | ||
public function test<T:Child>(t:T):Void; | ||
} | ||
|
||
class C implements I { | ||
public function test<T:Parent>(t:T) { } | ||
} | ||
|
||
function main() { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
tests/misc/projects/Issue11411/MainArgumentVarianceMissingBad.hx
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,14 @@ | ||
class Parent {} | ||
class Child extends Parent {} | ||
|
||
interface I { | ||
public function test<T>(t:T):Void; | ||
} | ||
|
||
class C implements I { | ||
public function test<T:Child>(t:T) { } | ||
} | ||
|
||
function main() { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
tests/misc/projects/Issue11411/MainArgumentVarianceMissingGood.hx
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,14 @@ | ||
class Parent {} | ||
class Child extends Parent {} | ||
|
||
interface I { | ||
public function test<T:Child>(t:T):Void; | ||
} | ||
|
||
class C implements I { | ||
public function test<T>(t:T) { } | ||
} | ||
|
||
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,13 @@ | ||
interface A {} | ||
interface B {} | ||
class C implements A implements B {} | ||
|
||
class Parent { | ||
function f<TC:C>(a:TC, b:TC) {} | ||
} | ||
|
||
class Child extends Parent { | ||
override function f<TA:A, TB:B>(a:TA, b:TB) {} | ||
} | ||
|
||
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,11 @@ | ||
interface I { | ||
public function test<T>():Void; | ||
} | ||
|
||
class C implements I { | ||
public function test<T:String>() { } | ||
} | ||
|
||
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,16 @@ | ||
class Parent {} | ||
class Child extends Parent {} | ||
|
||
interface I { | ||
public function test<T:Child>():T; | ||
} | ||
|
||
class C implements I { | ||
public function test<T:Parent>():T { | ||
return null; | ||
} | ||
} | ||
|
||
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,16 @@ | ||
class Parent {} | ||
class Child extends Parent {} | ||
|
||
interface I { | ||
public function test<T:Parent>():T; | ||
} | ||
|
||
class C implements I { | ||
public function test<T:Child>():T { | ||
return null; | ||
} | ||
} | ||
|
||
function main() { | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
tests/misc/projects/Issue11411/MainReturnVarianceMissingBad.hx
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,16 @@ | ||
class Parent {} | ||
class Child extends Parent {} | ||
|
||
interface I { | ||
public function test<T:Child>():T; | ||
} | ||
|
||
class C implements I { | ||
public function test<T>():T { | ||
return null; | ||
} | ||
} | ||
|
||
function main() { | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
tests/misc/projects/Issue11411/MainReturnVarianceMissingGood.hx
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,16 @@ | ||
class Parent {} | ||
class Child extends Parent {} | ||
|
||
interface I { | ||
public function test<T>():T; | ||
} | ||
|
||
class C implements I { | ||
public function test<T:Child>():T { | ||
return null; | ||
} | ||
} | ||
|
||
function main() { | ||
|
||
} |
2 changes: 2 additions & 0 deletions
2
tests/misc/projects/Issue11411/compile-argument-variance-bad-fail.hxml
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 MainArgumentVarianceBad | ||
--interp |
2 changes: 2 additions & 0 deletions
2
tests/misc/projects/Issue11411/compile-argument-variance-good.hxml
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 MainArgumentVarianceGood | ||
--interp |
2 changes: 2 additions & 0 deletions
2
tests/misc/projects/Issue11411/compile-argument-variance-missing-bad-fail.hxml
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 MainArgumentVarianceMissingBad | ||
--interp |
2 changes: 2 additions & 0 deletions
2
tests/misc/projects/Issue11411/compile-argument-variance-missing-good.hxml
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 MainArgumentVarianceMissingGood | ||
--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,2 @@ | ||
--main MainInterfaceUnion | ||
--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,2 @@ | ||
--main MainNoVariance | ||
--interp |
2 changes: 2 additions & 0 deletions
2
tests/misc/projects/Issue11411/compile-return-variance-bad-fail.hxml
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 MainReturnVarianceBad | ||
--interp |
2 changes: 2 additions & 0 deletions
2
tests/misc/projects/Issue11411/compile-return-variance-good.hxml
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 MainReturnVarianceGood | ||
--interp |
2 changes: 2 additions & 0 deletions
2
tests/misc/projects/Issue11411/compile-return-variance-missing-bad-fail.hxml
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 MainReturnVarianceMissingBad | ||
--interp |
2 changes: 2 additions & 0 deletions
2
tests/misc/projects/Issue11411/compile-return-variance-missing-good.hxml
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 MainReturnVarianceMissingGood | ||
--interp |