-
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: correctly print litteral types in the refined printer
- Loading branch information
1 parent
0ecc057
commit 937bc4c
Showing
3 changed files
with
23 additions
and
0 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,15 @@ | ||
[[syntax trees at end of typer]] // tests/printing/i22349.scala | ||
package <empty> { | ||
final lazy module val i22349$package: i22349$package = new i22349$package() | ||
final module class i22349$package() extends Object() { | ||
this: i22349$package.type => | ||
val x: Int = 0 | ||
val _$1: x.type = x | ||
inline val _$2: true = true | ||
inline val _$3: "abc" = "abc" | ||
inline val _$4: 'c' = 'c' | ||
inline val _$5: 1.2f = 1.2f | ||
inline val _$6: 1.2d = 1.2d | ||
} | ||
} | ||
|
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,7 @@ | ||
val x = 0 | ||
val _: x.type = x | ||
inline val _: true = true // boolean literal | ||
inline val _: "abc" = "abc" // string literal | ||
inline val _: 'c' = 'c' // character literal | ||
inline val _: 1.2f = 1.2f // floating point literal | ||
inline val _: 1.2d = 1.2d // double number literal |