Closed vsmenon closed 4 years ago
@scheglov
Cannot reproduce locally. I see this issue in DartPad.
scheglov@scheglov-macbookpro2:~/Source/Dart/sdk.git/sdk (master)$ dartanalyzer --enable-experiment=non-nullable /Users/scheglov/dart/test/bin/test.dart
Analyzing /Users/scheglov/dart/test/bin/test.dart...
lint • Name non-constant identifiers using lowerCamelCase. • /Users/scheglov/dart/test/bin/test.dart:1:3 • non_constant_identifier_names
1 lint found.
scheglov@scheglov-macbookpro2:~/Source/Dart/sdk.git/sdk (master)$ dartanalyzer --version
dartanalyzer version 2.8.0-edge.e2e290b4cfde36c69459f2974d4856dc84e649bc
Let me try re-syncing and re-building.
This is fixed at head. Sorry for the noise.
The following:
triggers (on
Object y = JS(x)
):and
T
should be inferred asObject
here.Note, this is coming up in DDC internal
dart:*
code. UsingJS<Object>(...)
works around the problem for now.Hitting this on both http://nullsafety.dartpad.dev/ and an SDK built this week.