Skip to content

Commit 41e8a12

Browse files
committed
Reclassify main-functions-nameclash test
1 parent ac05bd5 commit 41e8a12

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: tests/neg/main-functions-nameclash.scala

+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+
}

Diff for: tests/warn/main-functions-nameclash.scala

-5
This file was deleted.

0 commit comments

Comments
 (0)