| [#787] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Sean | Martin | not repro | 2006-10-23 16:37:04.0 | |
| subject | useless deprecation warning | |||
| code |
package test;
object Test {
def f(g : Int => Unit) : Unit = g(10);
def foo : Int = {
f(n => {
return n;
});
10;
}
} |
|||
| what happened | Deprecation warning occurs for any non-local return.sean-mcdirmids-computer:~/workspace/test22/src mcdirmid$ ../../scala/build/quick/bin/scalac -deprecation -s\ ourcepath . -d ../bin/ test/Test.scala test/Test.scala warning: non variable type-argument scala.Int in type pattern is deprecated because it cannot be\ checked after erasure one warning found sean-mcdirmids-computer:~/workspace/test22/src mcdirmid$ |
|||
| what expected | ||||
| [back to overview] | ||||
| Martin edited on 2006-10-26 14:34:22.0 |
| I can't reproduce. I guess there must have been a mix-up of versions. |