-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tmp before removing initTastyVersion param from newSymbol factory method
- Loading branch information
1 parent
d015fb1
commit 62dce94
Showing
5 changed files
with
96 additions
and
34 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
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,12 +1,39 @@ | ||
def fun(a: Any, b: Any = 2): Any = ??? | ||
//def fun(a: Any, b: Any = 2): Any = ??? | ||
def fun(a: Any, b: Any): Any = ??? | ||
|
||
def test = | ||
|
||
// val a1 = { | ||
// enum Option1[+X]: | ||
// case Some1(x: X) | ||
// case None1 | ||
// if ??? then Option1.Some1(1) else Option1.None1 | ||
// } | ||
// fun( | ||
// b = println(1), | ||
// a = a1 | ||
// ) // works | ||
|
||
fun( | ||
b = println(1), | ||
a = { | ||
enum Option[+X]: | ||
case Some(x: X) | ||
case None | ||
if ??? then Option.Some(1) else Option.None | ||
} | ||
) | ||
enum Option3[+X]: | ||
case Some3(x: X) | ||
case None3 | ||
if ??? then Option3.Some3(1) else Option3.None3 | ||
}, | ||
b = println(1), | ||
) // works | ||
|
||
// fun( | ||
// b = println(1), | ||
// a = { | ||
// enum Option2[+X]: | ||
// case Some2(x: X) | ||
// case None2 | ||
// | ||
// import Option2.* | ||
// summon[deriving.Mirror.Of[Some2[Int]]] | ||
// | ||
// if ??? then Option2.Some2(1) else Option2.None2 | ||
// } | ||
// ) // fails |