Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

task model: F bounded quantification bug #357

Closed
vsmenon opened this issue Sep 29, 2015 · 2 comments
Closed

task model: F bounded quantification bug #357

vsmenon opened this issue Sep 29, 2015 · 2 comments

Comments

@vsmenon
Copy link
Contributor

vsmenon commented Sep 29, 2015

From f_bounded_quantification2_test.dart:

class Entities<T extends ConceptEntity<T>> implements EntitiesApi<T> { }

class ConceptEntity<T extends ConceptEntity<T>> implements EntityApi { }

abstract class EntityApi<T extends EntityApi<T>> { }

abstract class EntitiesApi<T extends EntityApi<T>> { }

class Concept extends ConceptEntity<Concept> { }

main() {
  new ConceptEntity<Concept>();
  new ConceptEntity<ConceptEntity>();
}

is triggering the following errors - newly in the task model strong mode:

severe: [AnalyzerMessage] 'T' does not extend 'EntityApi<T>' (test/codegen/language/f_bounded_quantification2_test.dart, line 7, col 67)
severe: [AnalyzerMessage] 'ConceptEntity' does not extend 'ConceptEntity<ConceptEntity>' (test/codegen/language/f_bounded_quantification2_test.dart, line 19, col 21)

This particular test isn't strictly blocking - we don't support this pattern yet in codegen, but it is a regression.

@vsmenon
Copy link
Contributor Author

vsmenon commented Nov 11, 2015

We're now supporting codegen for this, but those errors are still there.

@jmesserly
Copy link
Contributor

moved to dart-lang/sdk#25530

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants