Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tests/neg/i19413.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

import hello.bla.* // error

//transparent inline def hello: kla.type = kla // ok
def hello: kla.type = kla

object kla:
def ra = ???
object bla { val ra1 = 31 }

//import kla.bla.ra1

@main def test = println:
ra1
7 changes: 7 additions & 0 deletions tests/pos/i20070.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

trait F[A]
given F[Int] = new F {}
def f[A: F] = { (x: A) => x }

@main def test =
println(f[Int](1))
2 changes: 2 additions & 0 deletions tests/warn/i23033.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ object Useful:
given [T](using @unused ec: ExecutionContext): AnyRef with {}
object Syntax:
given [T] => (@unused ec: ExecutionContext) => AnyRef

class i23122(@unused param: AnyRef)
Loading