You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.P2A bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
It's expected that if I succssffully assign testme to the variable of the type TEST_TYPEDEF, ttttt is TEST_TYPEDEF should report true. However, this is not so here: there are no errors and the example above twice prints false unexpectidly.
The text was updated successfully, but these errors were encountered:
eernstg
added
the
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
label
Mar 15, 2021
Agreed, TEST_TYPEDEF means TEST_TYPEDEF<T Function<T>(T)> means void Function<TTT extends T Function<T>(T)>(), same as void Function<TT extends T Function<T>(T)>(), so we should get true, twice.
a-siva
added
legacy-area-front-end
Legacy: Use area-dart-model instead.
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
P2
A bug or feature request we're likely to work on
labels
Mar 15, 2021
@eernstg I think the suspicious TTT extends TT = dynamic part is because the default types (those the follow = in the declarations of type variables) don't really make sense for function types, only for classes and functions, because instantiate-to-bound doesn't apply to them. We see them there only because we use the same TypeParameter node kind for all of class, function, typedef, and function type type parameters. It likely doesn't affect the execution.
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.P2A bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
Dart SDK version: 2.13.0-114.0.dev (dev) (Sat Mar 6 18:27:50 2021 -0800) on "windows_x64"
The following code example declares generic function typedef
TEST_TYPEDEF
and then try to assignTEST_TYPEDEF
variable and check its type:It's expected that if I succssffully assign
testme
to the variable of the typeTEST_TYPEDEF
,ttttt is TEST_TYPEDEF
should reporttrue
. However, this is not so here: there are no errors and the example above twice printsfalse
unexpectidly.The text was updated successfully, but these errors were encountered: