dart2js crash on List<void foo()> l; #25890
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
Versions involved:
This code compiles:
This code has a rather different result:
When compiling the above element, the compiler crashed. It is not
possible to tell if this is caused by a problem in your program or
not. Regardless, the compiler should not crash.
The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.
Please include the following information:
below as well as the source location above).
The compiler crashed: The null object does not have a getter 'next'.
NoSuchMethodError: method not found: 'next'
Receiver: null
Arguments: []
#0 Object._noSuchMethod (dart:core-patch/object_patch.dart:42)
#1 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#2 Parser.findMemberName (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/parser/parser.dart:1054)
#3 Parser.parseTopLevelMember (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/parser/parser.dart:740)
#4 Parser.parseTopLevelDeclaration (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/parser/parser.dart:138)
#5 Parser.parseUnit (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/parser/parser.dart:111)
#6 DietParserTask.dietParse. (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/parser/diet_parser_task.dart:35)
#7 CompilerTask.measure (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:55)
#8 DietParserTask.dietParse (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/parser/diet_parser_task.dart:29)
#9 ScannerTask.scanElements (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/scanner/scanner_task.dart:53)
#10 ScannerTask.scan. (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/scanner/scanner_task.dart:42)
#11 CompilerTask.measure (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/common/tasks.dart:55)
#12 ScannerTask.scan (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/scanner/scanner_task.dart:41)
#13 ScannerTask.scanLibrary (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/scanner/scanner_task.dart:37)
#14 _LibraryLoaderTask.createLibrarySync. (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/library_loader.dart:635)
#15 _CompilerDiagnosticReporter.withCurrentElement (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/compiler.dart:1691)
#16 _LibraryLoaderTask.createLibrarySync (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/library_loader.dart:629)
#17 _LibraryLoaderTask.createLibrary.. (file:///b/build/slave/dart-sdk-mac-stable/build/sdk/pkg/compiler/lib/src/library_loader.dart:613)
#18 _RootZone.runUnary (dart:async/zone.dart:1149)
#19 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:502)
#20 _Future._propagateToListeners (dart:async/future_impl.dart:585)
#21 _Future._completeWithValue (dart:async/future_impl.dart:376)
#22 _Future._asyncComplete. (dart:async/future_impl.dart:430)
#23 _microtaskLoop (dart:async/schedule_microtask.dart:43)
#24 _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)
#25 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#26 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
I haven't been able to find a reference that tells me definitively whether the non-typedef'd version should compile (seems like it should?), but even if this is a syntax error, it shouldn't crash the compiler.
The text was updated successfully, but these errors were encountered: