Skip to content
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

Incorrect behaviour if .type used #159

Closed
hgiddens opened this issue Aug 13, 2015 · 2 comments
Closed

Incorrect behaviour if .type used #159

hgiddens opened this issue Aug 13, 2015 · 2 comments

Comments

@hgiddens
Copy link

@hgiddens hgiddens commented Aug 13, 2015

Scala's REPL:

scala> val x = "1"
x: String = 1

scala> val t: x.type = x
xt: x.type = 1

If I try this in Ammonite, it adds another .type for some reason (I only entered it once) and then freaks out:

@ val x = "1"
x: String = "1"
@ val t: x.type.type = x
Compilation Failed
Main.scala:52: type mismatch;
 found   : String
 required: cmd0.x.type
}.apply
  ^
@lihaoyi lihaoyi closed this in b961a3d Aug 13, 2015
@lihaoyi lihaoyi reopened this Aug 13, 2015
@lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Aug 13, 2015

Didn't work

lihaoyi pushed a commit that referenced this issue Aug 14, 2015
@lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Aug 14, 2015

Should be fixed

@lihaoyi lihaoyi closed this Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants