Skip to content

Commit 54895cd

Browse files
authored
Merge pull request #1115 from dotty-staging/ensure-bootstrapped-partest
Ensure that partest runs bootstrapped Dotty.
2 parents 3e6cdef + 5a65c91 commit 54895cd

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ object DottyBuild extends Build {
177177
path = file.getAbsolutePath
178178
} yield "-Xbootclasspath/p:" + path
179179
// 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
181181
// System.err.println("BOOTPATH: " + fullpath)
182182

183183
val travis_build = // propagate if this is a travis build

tests/run/defaultGetters.check

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
default bar
2+
default baz

tests/run/defaultGetters.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
}

0 commit comments

Comments
 (0)