Skip to content

Instantly share code, notes, and snippets.

@jrudolph
Created October 19, 2012 07:50
Show Gist options
  • Save jrudolph/3916794 to your computer and use it in GitHub Desktop.
Save jrudolph/3916794 to your computer and use it in GitHub Desktop.
Regression bug in Scala 2.10.0-RC1
/.idea/
target/
lib_managed/
src_managed/
test-output/
*.iml
package org.example
object Main extends App {
println(foo.bar.Foo.bar)
}
sbt.version=0.12.1
package foo.bar
object Foo {
def bar = 42
}
package foo.bar
object Foo {
def bar = 42
}
package foo
package object bar {
type Foo = Int => String
}
package org.example
object Main extends App {
println(foo.bar.Foo.bar)
}
package foo
package object bar {
type Foo = Int => String
}
import sbt._
import sbt.Keys._
object ScalaProjectBuild extends Build {
lazy val root =
Project("root", file("."))
.aggregate(lib, app)
lazy val lib =
Project("lib", file("lib"))
.settings(scalaVersion := "2.10.0-RC1")
lazy val app =
Project("application", file("application")).dependsOn(lib)
.settings(scalaVersion := "2.10.0-RC1")
}
import sbt._
import sbt.Keys._
object ScalaProjectBuild extends Build {
lazy val root =
Project("root", file("."))
.aggregate(lib, app)
lazy val lib =
Project("lib", file("lib"))
.settings(scalaVersion := "2.10.0-RC1")
lazy val app =
Project("application", file("application")).dependsOn(lib)
.settings(scalaVersion := "2.10.0-RC1")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment