type flagged as illegal when it shouldn't be class Derived>' illegally refers to itself class Base extends Base<Derived #1222
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
closed-duplicate
Closed in favor of an existing report
This issue was originally filed by [email protected]
In discussions with Gilad over issue #211, I wrote a test which the VM complains about. The issue is:
class Base<T> {}
class Derived extends Base<Derived> {} // legal
I believe the above should be a legal definition.
$ dart tests/language/src/CyclicTypeVariableTest.dart
type 'Base<Derived>' illegally refers to itself
See discussion at:
http://codereview.chromium.org/9186017/
The text was updated successfully, but these errors were encountered: