-
Notifications
You must be signed in to change notification settings - Fork 30
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
49 changed files
with
129 additions
and
174 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[error] examples\pts\neg\blockTypes.effekt:5:1: Cannot fully infer type for func: {_} => String | ||
def func{param: _} = "test" | ||
[error] examples/pts/neg/blockParameters.effekt:5:1: Cannot fully infer type for func: {_} => String | ||
def func{param: _} = "test" | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
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,3 @@ | ||
[error] examples/pts/neg/boxInference.effekt:12:24: Capture parameter count does not match Int => Int / { Eff } vs. Int => Int | ||
val res = func(box f) | ||
^ | ||
[error] examples/pts/neg/boxInference.effekt:8:6: Cannot infer function type for callee. | ||
(unbox boxedParam)(1) | ||
^ |
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,3 @@ | ||
[error] examples/pts/neg/boxParametricFunction.effekt:12:24: Type parameter count does not match [A]A => A vs. Int => Int | ||
val res = func(box f) | ||
^ | ||
[error] examples/pts/neg/boxParametricFunction.effekt:8:6: Cannot infer function type for callee. | ||
(unbox boxedParam)(1) | ||
^ |
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,3 @@ | ||
[error] examples/pts/neg/effectInBlockParam.effekt:6:5: EffectSetWildcard is not allowed in block parameter | ||
func() | ||
^ |
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,3 @@ | ||
[error] examples/pts/neg/externDefCaptures.effekt:3:10: Capture set wildcards are not allowed here! | ||
extern _ def func(x: Int): Int = "test" | ||
^ |
2 changes: 2 additions & 0 deletions
2
examples/pts/test16.effekt → examples/pts/neg/externDefCaptures.effekt
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,5 @@ | ||
module examples/pts/neg/externDefCaptures | ||
|
||
extern _ def func(x: Int): Int = "test" | ||
|
||
def 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,3 @@ | ||
[error] examples/pts/neg/externDefParameter.effekt:3:1: Cannot fully infer type for test: ValueTypeWildcard => Unit | ||
extern pure def test(x: _): Unit = "test" | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
2 changes: 2 additions & 0 deletions
2
examples/pts/neg/externFunction.effekt → examples/pts/neg/externDefParameter.effekt
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,5 @@ | ||
module examples/pts/neg/externDefParameter | ||
|
||
extern pure def test(x: _): Unit = "test" | ||
|
||
val a = test(1) | ||
|
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,3 @@ | ||
[error] examples/pts/neg/externDefReturn.effekt:3:1: Cannot fully infer type for func: EffectSetWildcard | ||
extern def func(x: _): _ / _ = "Test" | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
2 changes: 2 additions & 0 deletions
2
examples/pts/test17.effekt → examples/pts/neg/externDefReturn.effekt
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,5 @@ | ||
module examples/pts/neg/externDefReturn | ||
|
||
extern def func(x: _): _ / _ = "Test" | ||
|
||
def main() = { | ||
|
Empty file.
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,3 @@ | ||
[error] examples/pts/neg/externResource.effekt:3:1: Cannot fully infer type for test: _ | ||
extern resource test: _ | ||
^^^^^^^^^^^^^^^^^^^^^^^ |
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,5 @@ | ||
module examples/pts/neg/externResource | ||
|
||
extern resource test: _ | ||
|
||
def 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[error] examples\pts\neg\functionParameter.effekt:3:1: Cannot fully infer type for func1: ValueTypeWildcard => String | ||
[error] examples/pts/neg/functionParameter.effekt:3:1: Cannot fully infer type for func1: ValueTypeWildcard => String | ||
def func1(x: _) = "test" | ||
^^^^^^^^^^^^^^^^^^^^^^^^ |
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,3 @@ | ||
[error] examples/pts/neg/operation.effekt:3:1: Wildcard not usable in interface operations | ||
effect Test { | ||
^ |
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,4 +1,4 @@ | ||
// opClause wildcard | ||
module examples/pts/neg/operation | ||
|
||
effect Test { | ||
def output(x: Int): Int / _ | ||
|
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,3 @@ | ||
[error] examples/pts/neg/typeAlias.effekt:5:1: Cannot fully infer type for f: ValueTypeWildcard => Int | ||
def f(x: A) = 1 | ||
^ |
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,9 @@ | ||
module examples/pts/neg/typeAlias | ||
|
||
type A = _ | ||
|
||
def f(x: A) = 1 | ||
|
||
def main() = { | ||
1 | ||
} |
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,3 @@ | ||
[error] examples\pts\neg\variable.effekt:6:13: Expected Int but got String. | ||
[error] examples/pts/neg/variable.effekt:6:13: Expected Int but got String. | ||
value = "t" | ||
^^^ |
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 |
---|---|---|
|
@@ -11,3 +11,7 @@ def outer{interfaceEff: InterfaceEff} = { | |
} | ||
func | ||
} | ||
|
||
def 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
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 |
---|---|---|
|
@@ -18,4 +18,8 @@ def func{ eff: Eff } = { | |
def unboxed: _ = boxed | ||
|
||
boxed | ||
} | ||
|
||
def main() = { | ||
() | ||
} |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
effect Eff(): Unit | ||
|
||
def f(): Int / Eff = { | ||
do Eff() | ||
1 | ||
} | ||
|
||
val boxed: _ at {} = box f | ||
|
||
def 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 |
---|---|---|
|
@@ -14,4 +14,6 @@ def func2(): Int / _ = { | |
1 | ||
} | ||
|
||
def main() = { () } | ||
def main() = { | ||
() | ||
} |
File renamed without changes.
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 |
---|---|---|
|
@@ -4,5 +4,5 @@ def f(x: _): Int = { | |
} | ||
|
||
def main() = { | ||
f("1") | ||
() | ||
} |
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 |
---|---|---|
|
@@ -2,8 +2,6 @@ def f[A](x: A): Int = 2 | |
|
||
val boxed: _ at {} = box f | ||
|
||
val d: Int = boxed | ||
|
||
def main() = { | ||
() | ||
} |
File renamed without changes.
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,8 @@ | ||
def id[A](x: A): A = x | ||
def id[A](x: _): A = { | ||
val y: A = x | ||
x | ||
} | ||
|
||
def main() = { | ||
() | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.