diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t3898.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/t3898.scala b/test/files/pos/t3898.scala new file mode 100644 index 0000000000..ab47bbd877 --- /dev/null +++ b/test/files/pos/t3898.scala @@ -0,0 +1,6 @@ +trait Atomic[@specialized(Boolean) T] { + def x: T + + def f(fn: T => T): Boolean = f(fn(x), true) + def f[R](a: T, b: R): R = b +} |