-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
:NewDefs | ||
|
||
// * These type definitions should be checked for cyclicity, like we did in the old frontend, | ||
// * but this is currently not implemented. | ||
|
||
|
||
type Foo = Foo | ||
//│ type Foo = Foo | ||
|
||
(f: Foo) => f : Str | ||
//│ (f: Foo) -> Str | ||
//│ res | ||
//│ = [Function: res] | ||
|
||
|
||
type Foo = Foo & Int | ||
//│ type Foo = Foo & Int | ||
|
||
// FIXME | ||
(f: Foo) => f : Str | ||
//│ /!!!\ Uncaught error: java.lang.StackOverflowError | ||
|
||
|
||
abstract class Foo: Foo | ||
//│ abstract class Foo: Foo | ||
|
||
// FIXME | ||
(f: Foo) => f : Str | ||
//│ /!!!\ Uncaught error: java.lang.StackOverflowError | ||
|
||
|
||
abstract class Foo[T]: Foo[Int] | ||
//│ abstract class Foo[T]: Foo[Int] | ||
|
||
// FIXME | ||
fun test(f: Foo['a]) = f : Str | ||
//│ /!!!\ Uncaught error: java.lang.StackOverflowError | ||
|
||
|