-
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.
- Loading branch information
1 parent
2ab53f1
commit 6218178
Showing
11 changed files
with
96 additions
and
52 deletions.
There are no files selected for viewing
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,44 @@ | ||
package tests | ||
package exports1 | ||
|
||
class A: //unexpected | ||
def aDefInt: Int | ||
= 1 | ||
def aDef1: 1 | ||
= 1 | ||
val aValInt: Int | ||
= 1 | ||
val aVal1: 1 | ||
= 1 | ||
var aVarInt: Int | ||
= 1 | ||
var aVar1: 1 | ||
= 1 | ||
type HKT[T[_], X] //expected: final type HKT = [T[_], X] =>> HKT[T, X] | ||
= T[X] | ||
def x[T[_], X](x: X): HKT[T, X] | ||
= ??? | ||
def fn[T, U]: T => U | ||
= ??? | ||
object Object //expected: val Obj: Object.type | ||
val x: HKT[List, Int] | ||
= ??? | ||
class Class(val a: Int, val b: Int) extends Serializable //expected: final type Class = Class | ||
enum Enum: //expected: final type Enum = Enum | ||
case A | ||
case B(i: Int) | ||
case C[T]() extends Enum | ||
|
||
object X: //unexpected | ||
def xDefInt: Int | ||
= 1 | ||
def xDef1: 1 | ||
= 1 | ||
val xValInt: Int | ||
= 1 | ||
val xVal1: 1 | ||
= 1 | ||
var xVarInt: Int | ||
= 1 | ||
var xVar1: 1 | ||
= 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,12 @@ | ||
package tests | ||
package exports2 | ||
|
||
import exports1._ | ||
|
||
class B: | ||
val a: A | ||
= new A | ||
export a.{Object => Obj, _} | ||
export X._ | ||
def obj: Obj.type | ||
= Obj |
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
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