diff options
Diffstat (limited to 'test/files/run/t0042.scala')
-rwxr-xr-x | test/files/run/t0042.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t0042.scala b/test/files/run/t0042.scala new file mode 100755 index 0000000000..53314f2885 --- /dev/null +++ b/test/files/run/t0042.scala @@ -0,0 +1,9 @@ +object Test extends Application { + def getClause[T](clauses: List[T]): Option[T] = { + for (c <- clauses) { + return Some(c) + } + return None + } + println(getClause(List(1, 2, 3))) +} |