Skip to content

Ensure that partest runs bootstrapped Dotty. #1115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 31, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ object DottyBuild extends Build {
path = file.getAbsolutePath
} yield "-Xbootclasspath/p:" + path
// dotty itself needs to be in the bootclasspath
val fullpath = ("-Xbootclasspath/a:" + bin) :: path.toList
val fullpath = ("-Xbootclasspath/p:" + "dotty.jar") :: ("-Xbootclasspath/a:" + bin) :: path.toList
// System.err.println("BOOTPATH: " + fullpath)

val travis_build = // propagate if this is a travis build
Expand Down
2 changes: 2 additions & 0 deletions tests/run/defaultGetters.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default bar
default baz
14 changes: 14 additions & 0 deletions tests/run/defaultGetters.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
object Test {

def foo[T](x: T = "abc") = x
def bam(x: => Unit = ()) = x
def bar(x: => Unit = { println("default bar"); () }) = x
def baz(x: => String = { println("default baz"); "cde" }) = x

def main(args: Array[String]): Unit = {
assert(foo() == "abc")
bam()
bar()
baz()
}
}