Skip to content

Commit 879a7f6

Browse files
committed
Add test object-loses-type-alias-ok
Type aliases can't be top-level (in the normal way, not in the Dotty way) because that type definition must live in some bytecode somewhere. So I wanted to check that that doesn't have any binary compatibility concerns if you lose the alias. (In truth I was double-checking scala/bug#11888 (comment)).
1 parent cf835c1 commit 879a7f6

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
object App {
2+
def main(args: Array[String]): Unit = {
3+
println(A)
4+
}
5+
}

functional-tests/src/test/object-loses-type-alias-ok/problems.txt

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object A {
2+
type Str = java.lang.String
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
object A

0 commit comments

Comments
 (0)