-
Notifications
You must be signed in to change notification settings - Fork 203
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
Update code example for Instantiation to Bound Algorithm #2679
Labels
bug
There is a mistake in the language specification or in an active document
Comments
jmewes
added
the
bug
There is a mistake in the language specification or in an active document
label
Dec 2, 2022
Good catch, thanks! Handled in 8f1fd57. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Observed
In the Dart language specification there the following code example for the section "Generics > Instantiation to Bound > The Instantiation to Bound Algorithm":
(see 14efbe8/specification/dartLangSpec.tex#L8044-L8049)
This yields a not_initialized_non_nullable_variable error.
Expected
The variable
b
should have a nullable type, contain an instance of typeB
, or be declared within a function.Comment
In the example below there is a similar code snippet that shows an example for a compilation error. It might be useful to adapt this as well, so that it show the expected compilation error.
The text was updated successfully, but these errors were encountered: