Created
January 11, 2013 20:02
-
-
Save xeno-by/4513537 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21:00 ~/Projects/Kepler_2.10.x/sandbox (2.10.x)$ scalac -cp /Users/xeno_by/Projects/ScalaMock/core/target/scala-2.10/scalamock-core_2.10-3.0.jar:/Users/xeno_by/Projects/ScalaMock/frameworks/scalatest/target/scala-2.10/scalamock-scalatest-support_2.10-3.0.jar:/Users/xeno_by/.ivy2/cache/org.scalatest/scalatest_2.10.0/jars/scalatest_2.10.0-2.0.M5.jar:. -Xprint:typer -uniqid Test.scalaTest.scala:9: error: type mismatch; | |
found : T#20879 | |
required: T#11644 | |
val foo = mock[JavaInterface] | |
^ | |
[[syntax trees at end of typer]] // Test.scala | |
package <empty>#4 { | |
import org#6.scalatest#6970.FunSuite; | |
import org#6.scalamock#6968.scalatest#8958.MockFactory; | |
class MockingTest#6943 extends Object#1730 with org#7.scalatest#6971.FunSuite#7338 with org#7.scalamock#6969.scalatest#8959.MockFactory#8961 { | |
def <init>#9024(): MockingTest#6943 = { | |
MockingTest#6943.super.<init>#4689(); | |
() | |
}; | |
private[this] val foo#9026: JavaInterface#6937 = { | |
final class $anon#20702 extends Object#1730 with JavaInterface#6937 { | |
def <init>#20703(): anonymous class $anon#20702 = { | |
$anon#20702.super.<init>#4689(); | |
() | |
}; | |
override def foo#20704[T#11644 >: Nothing#3314 <: Any#3313](): T#11644 = $anon#20702.this.mock$foo$0#20706.apply#20729(); | |
private[this] val mock$foo$0#20707: org#7.scalamock#6969.MockFunction0#8943[_] = new org#7.scalamock#6969.MockFunction0#8943[T#11644](MockingTest#6943.this._factory#9443, scala#20.Symbol#1352.apply#20787("foo"))(scalamock#6969.this.Defaultable#8581.default#20863[T#11644]); | |
<stable> <accessor> def mock$foo$0#20706: org#7.scalamock#6969.MockFunction0#8943[_] = $anon#20702.this.mock$foo$0#20707 | |
}; | |
new $anon#20702() | |
}.asInstanceOf#4710[JavaInterface#6937]; | |
<stable> <accessor> def foo#9025: JavaInterface#6937 = MockingTest#6943.this.foo#9026 | |
} | |
} | |
one error found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment