Skip to content

Commit 5b0d6df

Browse files
Friendseekertgodzik
authored andcommitted
Reclassify main-functions-nameclash test
[Cherry-picked 41e8a12]
1 parent 01a9684 commit 5b0d6df

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object foo {
2+
@main def foo(x: Int) = () // error: class foo and object foo produce classes that overwrite one another
3+
}

tests/warn/main-functions-nameclash.scala

-5
This file was deleted.

0 commit comments

Comments
 (0)