|
[#1298] |
project: compiler |
priority: medium |
category: bug |
|
submitter |
assigned to |
status |
date submitted |
|
Stephane |
Martin |
moved to trac |
2007-08-28 17:31:21.0 |
subject |
[contrib #754] NO_LINE in type mismatch error |
code |
abstract class M
{ self =>
type T
final type selfType = M {type T = self.T}
type actualSelfType >: self.type <: selfType
def f[U](x: Any) = {}
// compiles successfully
f[Int](self: actualSelfType)
f[Int](self: selfType)
/*
: error: type mismatch;
found : M
required: M.this.selfType
NO_LINE
one error found
*/
// def g(x: Any) = {}
// g(self: selfType)
/*
Test.scala:25: error: type mismatch;
found : M
required: M.this.selfType
g(self: selfType)
^
one error found
*/
}
|
what happened |
": error: .... NO_LINE" reported with no file name or line number.
|
what expected |
Either successful compilation, as in f[Int](self: actualSelfType), or compilation error report with file name and line number, as in g(self: selfType) |
[back to overview] |