Skip to content

Problems with recognizing '[] syntax #4539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Glavo opened this issue May 17, 2018 · 1 comment
Closed

Problems with recognizing '[] syntax #4539

Glavo opened this issue May 17, 2018 · 1 comment

Comments

@Glavo
Copy link
Contributor

Glavo commented May 17, 2018

scala> val a = '[Int] 
val a: scala.quoted.Type[Int] = Type(Int)

scala> '[Int] 
1 |'[Int]
  |^
  |Illegal start of statement

@nicolasstucki
Copy link
Contributor

Same happens for

object Foo {
  val q = '[String]
  '[String] // error
}

@nicolasstucki nicolasstucki changed the title Problems with recognizing '[] syntax in repl Problems with recognizing '[] syntax May 22, 2018
@ghost ghost added the review label Jan 29, 2019
biboudis pushed a commit that referenced this issue Jan 30, 2019
Fix #4539: Add missing `'[` in canStartExpressionTokens
@ghost ghost removed the review label Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants