Skip to content

Commit

Permalink
Add tests for infix types with wildcard parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cswinter committed Aug 1, 2016
1 parent 9e9b980 commit a1d0f3e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/wildcardInInfixType.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
object wildcardInInfixType {

val useless: _ => _ = (x: Int) => 1

val pointless: (_ <: Int) => _ = (x: Int) => 1

val answer: Int Either _ = Left(42)
}

0 comments on commit a1d0f3e

Please sign in to comment.