Skip to content

Commit

Permalink
Reclassify main-functions-nameclash test
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Oct 9, 2024
1 parent ac05bd5 commit 41e8a12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions tests/neg/main-functions-nameclash.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object foo {
@main def foo(x: Int) = () // error: class foo and object foo produce classes that overwrite one another
}
5 changes: 0 additions & 5 deletions tests/warn/main-functions-nameclash.scala

This file was deleted.

0 comments on commit 41e8a12

Please sign in to comment.