Comments (7)
This comment was originally written by [email protected]
Just to be more clear, test.py —checked should turn on the type checks. Support was only added a few days ago. A fresh build and Ben got them to work in as much as they are supported.
Added Invalid label.
from sdk.
This comment was originally written by [email protected]
Added Accepted label.
from sdk.
This comment was originally written by [email protected]
bool foo(bool bar()) => bar();
bool baz() => true;
main() {
Expect.equals(true, foo(baz));
}
When run with --enable_type_checks, this should produce no errors, but instead I get:
$ dart --enable_type_checks /tmp/foo3.dart
/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:403: [object Object]
throw e;
^
[object Object]
at $Dart$ThrowException (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:401:11)
at $te (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1701:3)
at $chk (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1688:3)
at unnamed7e6fa6$foo$member (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:18591:3)
at unnamed7e6fa6$main$member (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:18616:35)
at /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1079:5
at isolate$Isolate.run (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:869:14)
at isolate$IsolateEvent.process (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:905:16)
at isolate$doOneEventLoopIteration (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1038:11)
at isolate$doRunEventLoop (/tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1054:26)
Execution failed.
Mapped stack trace:
at UNMAPPED: /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:401:11 ($Dart$ThrowException)
at UNMAPPED: /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1701:3 ($te)
at UNMAPPED: /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1688:3 ($chk)
at MAPPED : file:/tmp/foo3.dart/foo3.dart:1:10 (unnamed7e6fa6$foo$member)
at MAPPED : file:/tmp/foo3.dart/foo3.dart:6:22 (unnamed7e6fa6$main$member)
at UNMAPPED: /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1079:5
at UNMAPPED: /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:869:14 (isolate$Isolate.run)
at UNMAPPED: /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:905:16 (isolate$IsolateEvent.process)
at UNMAPPED: /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1038:11 (isolate$doOneEventLoopIteration)
at UNMAPPED: /tmp/dart_file:_tmp_foo3.dart3547703831643974851.js:1054:26 (isolate$doRunEventLoop)
V8 execution returned non-zero exit-code: 1
Set owner to [email protected].
Removed Priority-High label.
Added Priority-Medium, Area-Compiler labels.
from sdk.
This comment was originally written by [email protected]
Set owner to [email protected].
Added Started label.
from sdk.
This comment was originally written by [email protected]
I have a fix I will be landing today that addresses this.
from sdk.
This comment was originally written by [email protected]
Sorry, jat. I assumed that a patch was not forth coming. Assigned back to you.
Set owner to [email protected].
from sdk.
This comment was originally written by [email protected]
JAT, I believe that your commit, http://code.google.com/p/dart/source/detail?r=975 fixed this issue. Please reopen if that is not the case.
Added Fixed label.
from sdk.
Related Issues (20)
- [CP] Fix zlib inflation to ignore data past the ADLER32 trailer. HOT 2
- `@docImport`s should support `as` imports HOT 1
- Reference libraries with `@docImports` HOT 3
- gen_snapshot and dart snapshot sometimes crash on ios flutter buildbot bot HOT 2
- Fix the nullability of `InvalidType`
- [js interop] interop objects sometimes implement Dart types
- Analyzer thinks private getter in mixin is not referenced, even though it is HOT 2
- Issue: Dart Compile JS Fails to Assign External JS Function HOT 2
- [dart2wasm] RuntimeError: unreachable HOT 6
- Unnecessary import prefixes in Dart `macros` while using `covariant`
- [analyzer] Wrong error for an enum with non-final external variable
- [js-interop] Help users using JS maps HOT 3
- Support likely() and unlikely() hints for AOT code optimization HOT 1
- [JS-interop] Extension for JSBigint HOT 10
- Attempting to call a DTD service without a dot in the name results in a bad error
- CTRL + Click `part of 'file.dart';` directive doesn't work without `part` directive HOT 2
- [Dart VM] Cannot set pause_isolates_on_exit at runtime HOT 3
- Obfuscation: A need for serious commitment in dart and flutter HOT 7
- bug: analyzer does not report "inherits multiple members named with incompatible signatures." error but compilation fails. HOT 5
- [CP] [stable] Fix analysis server plugins not receiving setContextRoots (or having wrong roots) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.