Skip to content

Kernel Instantiation node is not supported in VMs constant evaluator #32268

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

Closed
mraleph opened this issue Feb 21, 2018 · 0 comments
Closed

Kernel Instantiation node is not supported in VMs constant evaluator #32268

mraleph opened this issue Feb 21, 2018 · 0 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. customer-flutter P0 A serious issue requiring immediate resolution
Milestone

Comments

@mraleph
Copy link
Member

mraleph commented Feb 21, 2018

typedef void F<T>(T v);

void defaultF<T>(T v) {
}

class X {
  final F f;
  const X({this.f: defaultF});
}

void main() {
  print(const X());
}

causes

$ pkg/vm/tool/dart2 /tmp/x.dart
Unhandled exception:
'file:///tmp/x.dart': error: Not a constant expression: unexpected kernel tag Instantiation (54)error: error evaluating constant constructor
#0      _startIsolate.<anonymous closure> (dart:isolate/isolate_patch.dart:279:19)
#1      _RawReceivePortImpl._handleMessage (dart:isolate/isolate_patch.dart:165:12)
@mraleph mraleph added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. P0 A serious issue requiring immediate resolution customer-flutter labels Feb 21, 2018
@JekCharlsonYu JekCharlsonYu added this to the I/O Beta 2 milestone Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. customer-flutter P0 A serious issue requiring immediate resolution
Projects
None yet
Development

No branches or pull requests

4 participants