Skip to content

Commit fee4705

Browse files
committed
Add regression tests
Closes scala#7635
1 parent 49ae535 commit fee4705

File tree

1 file changed

+9
-0
lines changed
  • compiler/test-resources/repl

1 file changed

+9
-0
lines changed

compiler/test-resources/repl/i7635

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
scala> class C { protected val c = 42; override def toString() = s"C($c)" }
2+
// defined class C
3+
scala> val x = C()
4+
val x: C = C(42)
5+
scala> def foo = 3
6+
def foo: Int
7+
scala> foo
8+
val res0: Int = 3
9+
scala> import util.Try

0 commit comments

Comments
 (0)