Created
June 11, 2020 15:55
-
-
Save brandondiamond/a5359294a67ea186ecb7773f8764feea to your computer and use it in GitHub Desktop.
Simpler reproduction of self-collision bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pair<T extends Pair<T, S>, S extends Pair<T, S>> {} | |
mixin BrokenMixin<T extends Pair<T, S>, S extends Pair<T, S>> { | |
void broken<V extends Pair<V, W>, W extends Pair<V, W>>([void Function(T, V) func]) {} | |
} | |
class Example with BrokenMixin<Null, Null> {} | |
main() { | |
Example().broken<Null, Null>(); | |
} | |
// "Null" passed for convenience; any valid type will trigger the bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment