-
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.
[Fix #13306] Print paramInfo of HKTypeLambda
Co-authored-by: Jamie Thompson <jamie.thompson@bath.edu> Co-authored-by: Meriam Lachkar <meriam.lachkar@gmail.com>
- Loading branch information
1 parent
ea63740
commit 6be2091
Showing
3 changed files
with
33 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[[syntax trees at end of typer]] // tests/printing/i13306.scala | ||
package example { | ||
class MyClass() extends Object() {} | ||
class MembersContainer() extends Object() { | ||
type MyType[T >: Nothing <: example.MyClass] = Comparable[T] | ||
} | ||
final lazy module val Exports: example.Exports = new example.Exports() | ||
final module class Exports() extends Object() { this: example.Exports.type => | ||
val instance: example.MembersContainer = new example.MembersContainer() | ||
export example.Exports.instance.* | ||
final type MyType[T <: example.MyClass] = Comparable[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 @@ | ||
package example | ||
|
||
class MyClass | ||
|
||
class MembersContainer { | ||
type MyType[T <: MyClass] = Comparable[T] | ||
} | ||
|
||
object Exports { | ||
val instance = new MembersContainer | ||
export instance.* | ||
} |