forked from tek/splain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 4 test cases for singleton & witness value types base and plugin now defaults to default tests and bytecode directories, allowing tests to be run in IDE add special handling for SingletonType (for displaying term.type) & RefinedType (for displaying Witness value type)
- Loading branch information
Peng Cheng
committed
Feb 2, 2021
1 parent
382e0b0
commit fef1ccc
Showing
13 changed files
with
126 additions
and
22 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 |
---|---|---|
|
@@ -3,5 +3,5 @@ object Foo | |
type A | ||
type B | ||
def f(g: (=> A) => B): Unit = () | ||
f(1) | ||
f(1: 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 |
---|---|---|
|
@@ -22,5 +22,5 @@ object A | |
} | ||
def f(a: B.X.Y.T): Unit = () | ||
val x: C.X.Y.T = ??? | ||
f(x) | ||
f(x: C.X.Y.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import shapeless._ | ||
import shapeless.ops.hlist._ | ||
|
||
object SingleImp | ||
{ | ||
def fn(): Unit= { | ||
val a = 1 | ||
val b = 2 | ||
|
||
implicitly[a.type *** b.type] | ||
} | ||
} |
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 @@ | ||
implicit error; | ||
!I e: a.type *** b.type |
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,10 @@ | ||
import shapeless._ | ||
import shapeless.ops.hlist._ | ||
|
||
object SingleImp | ||
{ | ||
def fn[A, B](a: A, b: B) = { | ||
|
||
implicitly[a.type *** b.type] | ||
} | ||
} |
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 @@ | ||
implicit error; | ||
!I e: a.type *** b.type |
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,10 @@ | ||
import shapeless._ | ||
import shapeless.ops.hlist._ | ||
|
||
object SingleImp | ||
{ | ||
val a = 1 | ||
val b = 2 | ||
|
||
implicitly[a.type *** b.type] | ||
} |
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 @@ | ||
implicit error; | ||
!I e: a.type *** b.type |
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 @@ | ||
object Tup1 | ||
{ | ||
val a: Tuple1[String] = "Tuple1" | ||
val a: Tuple1[String] = "Tuple1": String | ||
} |
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 @@ | ||
import shapeless._ | ||
import shapeless.ops.hlist._ | ||
|
||
object WitnessImp | ||
{ | ||
def fn[A, B](a: A, b: B)(implicit ev: A *** B) = ??? | ||
|
||
fn(Witness(3).value, Witness(4).value) | ||
} |
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 @@ | ||
implicit error; | ||
!I ev: Int(3) *** Int(4) |