File tree 3 files changed +17
-1
lines changed 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ object DottyBuild extends Build {
177
177
path = file.getAbsolutePath
178
178
} yield " -Xbootclasspath/p:" + path
179
179
// dotty itself needs to be in the bootclasspath
180
- val fullpath = (" -Xbootclasspath/a:" + bin) :: path.toList
180
+ val fullpath = (" -Xbootclasspath/p: " + " dotty.jar " ) :: ( " -Xbootclasspath/ a:" + bin) :: path.toList
181
181
// System.err.println("BOOTPATH: " + fullpath)
182
182
183
183
val travis_build = // propagate if this is a travis build
Original file line number Diff line number Diff line change
1
+ default bar
2
+ default baz
Original file line number Diff line number Diff line change
1
+ object Test {
2
+
3
+ def foo [T ](x : T = " abc" ) = x
4
+ def bam (x : => Unit = ()) = x
5
+ def bar (x : => Unit = { println(" default bar" ); () }) = x
6
+ def baz (x : => String = { println(" default baz" ); " cde" }) = x
7
+
8
+ def main (args : Array [String ]): Unit = {
9
+ assert(foo() == " abc" )
10
+ bam()
11
+ bar()
12
+ baz()
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments