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

Generics disappear on try.dartlang.org #16

Closed
DartBot opened this issue Oct 10, 2011 · 5 comments
Closed

Generics disappear on try.dartlang.org #16

DartBot opened this issue Oct 10, 2011 · 5 comments

Comments

@DartBot
Copy link

DartBot commented Oct 10, 2011

This issue was originally filed by pimmhog...@gmail.com


Go to try.dartlang.org, then insert and execute this code:
class PointlessValueWrapper {
  PointlessValueWrapper(Type pointlessArgument);
}
main() {
  new PointlessValueWrapper(5);
  new PointlessValueWrapper("Hello!");
}

As expected, line 6 raises a warning.

Now, open the link on the top right in a new tab. You'll see the same code, except the type parameters are missing. Because of this, line 2 now produces an error.

I expect a tokeniser somewhere is misbehaving.

Using Firefox/Nightly (which is at version 10, at the moment).

@DartBot
Copy link
Author

DartBot commented Oct 11, 2011

This comment was originally written by drfibonacci@google.com


Set owner to knor...@google.com.
Added Component-Docs, Accepted labels.

@DartBot
Copy link
Author

DartBot commented Oct 11, 2011

This comment was originally written by drfibonacci@google.com


Removed Component-Docs label.
Added Area-Dartboard label.

@DartBot
Copy link
Author

DartBot commented Oct 11, 2011

This comment was originally written by knor...@google.com


I think the example got mangled.

Should this example demonstrate the issue? http://try.dartlang.org/s/4ocW

@DartBot
Copy link
Author

DartBot commented Oct 11, 2011

This comment was originally written by pimmhoge...@gmail.com


Your example should demonstrate the issue, as well as this example:
class PointlessValueWrapper<Type> {
  PointlessValueWrapper(Type pointlessArgument);
}
main() {
  new PointlessValueWrapper<int>(5);
  new PointlessValueWrapper<int>("Hello!");
}

The latter still demonstrated the issue yesterday, but both examples work fine now. It seems to be fixed. Thanks guys, you're awesome!

(I call "verified".)

@DartBot
Copy link
Author

DartBot commented Oct 11, 2011

This comment was originally written by knor...@google.com


We did fix an escaping bug yesterday evening. Glad to hear it fixes the issue.


Added Verified label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant