Skip to content

Commit c823a12

Browse files
committed
Add tests
1 parent faf948f commit c823a12

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/neg/i7013b.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import quoted._
2+
3+
class Foo {
4+
class Bar
5+
def foo() given QuoteContext = {
6+
'[Bar] // error
7+
}
8+
}

tests/neg/i7013c.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import quoted._
2+
3+
def foo() given QuoteContext = {
4+
type C
5+
'[C] // error
6+
}

0 commit comments

Comments
 (0)