Commit Graph

448 Commits

Author SHA1 Message Date
regis@google.com f955de9bc0 Throw a type error in production mode when the type of the type test is not
declared (issue 2571).
Add test.
Delete bad negative test now covered by new test.
Update status files of different compilers.
Review URL: https://chromiumcodereview.appspot.com//10035058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6754 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 17:01:28 +00:00
scheglov@google.com 42c3daeb88 Issue 2639. Resolve implicit super() constructor invocation.
http://code.google.com/p/dart/issues/detail?id=2639

R=devoncarew@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10116032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6719 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-19 01:02:10 +00:00
hausner@google.com be32f37af7 Fix dartc status
Mark GettersSettersTest as fail until it's fixed.
Review URL: https://chromiumcodereview.appspot.com//10117029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6706 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 18:34:43 +00:00
hausner@google.com 02661e6905 Accept keyword abstract in front of a class declaration
We can just ignore it. The VM has nothing to do for abstract
classes.
Review URL: https://chromiumcodereview.appspot.com//10103014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6612 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 23:46:55 +00:00
hausner@google.com 475fbca314 Implement implicit interfaces
Amazingly, this small change is all it seems to take to implement
implicit interfaces.
Review URL: https://chromiumcodereview.appspot.com//10103009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6607 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 22:21:54 +00:00
floitsch@google.com 91a1605755 Operator4Test only fails in unchecked mode for frog.
Review URL: https://chromiumcodereview.appspot.com//10095015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6590 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:57:30 +00:00
floitsch@google.com 63455dd294 It's CompileTimeConstantPTest/01 that is failing for frog.
Review URL: https://chromiumcodereview.appspot.com//10097019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6588 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:36:12 +00:00
floitsch@google.com 53083ba48a Add issue number.
Review URL: https://chromiumcodereview.appspot.com//10097017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6587 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:30:00 +00:00
floitsch@google.com a0e73ff5b9 Mark dartc as failing for CompileTimeConstantPTest.
Review URL: https://chromiumcodereview.appspot.com//10094014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6585 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:21:16 +00:00
floitsch@google.com 6bf1414a24 Reapply "Use default values of named arguments when invoking the default super constructor."
This reapplies (a fixed version of) commit 6580 which had been reverted in commit r6582.

Old issue: https://chromiumcodereview.appspot.com//9930005

Review URL: https://chromiumcodereview.appspot.com//10094013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6583 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:00:27 +00:00
floitsch@google.com 898f9293ed Revert "Use default values of named arguments when invoking the default super constructor."
This reverts commit 6580.

Review URL: https://chromiumcodereview.appspot.com//10101001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6582 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:46:55 +00:00
floitsch@google.com fdb46e99f7 Use default values of named arguments when invoking the default super constructor.
Review URL: https://chromiumcodereview.appspot.com//9930005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6580 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:33:28 +00:00
floitsch@google.com 140ae80d80 Reapply "Add some failing (in Dart2Js) tests."
This reapplies (a fixed version of) commit r6566 and reverts r6568.

Adapts Operator4Test to work in checked mode.

Review URL: https://chromiumcodereview.appspot.com//10096010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6579 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 14:32:43 +00:00
floitsch@google.com 1739218afa Revert "Add some failing (in Dart2Js) tests."
This reverts commit 6566.

Review URL: https://chromiumcodereview.appspot.com//10001007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6568 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 12:25:38 +00:00
floitsch@google.com 67ed0c1aa9 Add some failing (in Dart2Js) tests.
Review URL: https://chromiumcodereview.appspot.com//10081039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6566 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 12:08:35 +00:00
floitsch@google.com f6a66f3878 Allow all different string-literals in map literals.
Before spec. v0.8 only const strings were allowed.

Review URL: https://chromiumcodereview.appspot.com//9976004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6521 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 13:39:43 +00:00
asiva@google.com c4a316cb5f Fix test status from Fail to Crash.
Review URL: https://chromiumcodereview.appspot.com//10038042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6494 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 01:18:46 +00:00
regis@google.com fce1a7e45e Fix lazy initialization of static fields (issue 2472).
Review URL: https://chromiumcodereview.appspot.com//10050022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6438 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-11 21:24:17 +00:00
sigmund@google.com cca364ce76 change status files to make it possible to run test.py -c frog,dart2js -r none.
Except for standalone, this mostly skips all other tests. The configurations
frog_none and dart2js_none these have been ignored for now by the bots, enabling
those tests should be done as needed.

Review URL: https://chromiumcodereview.appspot.com//10042001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6382 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 20:56:37 +00:00
srdjan@google.com b3452e74fb Add a test to check correct references to a global variable that initially throws
a type error.
Review URL: https://chromiumcodereview.appspot.com//10006040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6294 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-06 20:25:21 +00:00
zundel@google.com ec609edb6d Adds fixes for the 'super' keyword used by itself in certain situations
Review URL: https://chromiumcodereview.appspot.com//9949016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6240 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 18:48:42 +00:00
regis@google.com 9ff0afa50e Do not require upper bounds to be resolved and finalized before comparing them
between the expected and actual factory class (issue 2431).
Add test.
Review URL: https://chromiumcodereview.appspot.com//10008017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6236 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 18:11:42 +00:00
antonm@google.com 0d855bf15b Remove now unnecessary suppression.
TBR=ager@google.com,whesse@google.com
BUG=2371

Review URL: https://chromiumcodereview.appspot.com//9980009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6182 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-04 18:01:56 +00:00
zundel@google.com c4d9d56627 Dartc's 'can't use a type variable in static context' message now works the same way as 'NO_SUCH_TYPE'
The error message for can't use a type variable in a static
context is useful, but it was an unconditional error.  Really,
the message is just a more friendly version of 'NO_SUCH_TYPE' and
needs to work in the same way, being a warning in some contexts, and
a compile time error in others.

http://code.google.com/p/dart/issues/detail?id=2374

Review URL: https://chromiumcodereview.appspot.com//9963082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6146 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 20:32:23 +00:00
regis@google.com ab0a25eb1d Add missing type checks for top level static initializers (issue 1980 and
duplicates 1957, 2070, 2224).
Review URL: https://chromiumcodereview.appspot.com//9958091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6145 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 20:23:30 +00:00
hausner@google.com 55a9a4831e Fix issue 1569
Report proper error on illegal getter and setter syntax, and bad field declarations.
Review URL: https://chromiumcodereview.appspot.com//9958041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6112 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 21:18:02 +00:00
zundel@google.com 3eaaa6b255 dartc co19 bug triage
Review URL: https://chromiumcodereview.appspot.com//9969055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6095 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 17:48:19 +00:00
antonm@google.com eb71892b39 Suppress TypedMessageTest on Dartium.
TBR=ajohnsen@google.com

Review URL: https://chromiumcodereview.appspot.com//9963049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6086 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 10:21:28 +00:00
regis@google.com 5282e44fb2 Use null type argument vector instead of vector of Dynamic for a generic raw
type when possible.
Fix type finalization of type parameters (always finalize in the context of the
class being parameterized and not in the enclosing class where the type
parameter is used).
Fix wrong generic optimization and added a test (a generic type instantiated
from a raw instantiator is not always raw).
Added printing of type argument vectors.
Review URL: https://chromiumcodereview.appspot.com//9939003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6068 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 22:16:52 +00:00
floitsch@google.com ac6ad95fc1 Fix typo in native_helper and add dartc test.
Review URL: https://chromiumcodereview.appspot.com//9955001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6061 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 19:00:15 +00:00
hausner@google.com 18d5cf7965 Fix two compile time const issues
- For equality expressions, the operands do not have to be of same
  type. (Issue 1671)

- Truncating division is allowed for any numerical type, not just
  integer. (Issue 1780) Spec has been updated accordingly and
  co19 issue 106 filed to fix faulty test.
Review URL: https://chromiumcodereview.appspot.com//9969023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6059 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 18:45:17 +00:00
floitsch@google.com 647019b6d0 Implement constant maps with __proto__ and fix maps with duplicated keys.
Review URL: https://chromiumcodereview.appspot.com//9873040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6008 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 22:59:01 +00:00
hausner@google.com c91cbd26a7 Fix capturing of for-loop variables
It was broken when there were captured variables in inner blocks.
LocalFunctionTest had a test case that was expecting the wrong result.
Add a few more test cases to For2Test.dart

Fixes issue 2338  (http://code.google.com/p/dart/issues/detail?id=2338)
Review URL: https://chromiumcodereview.appspot.com//9921030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6006 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 22:44:47 +00:00
zundel@google.com a6fa2f377c This re-enables all the cases in TypeDartcTest.dart
I used the /// static type warnings annotation to replace the runtime checks.
There is one case that fails so I filed a ticket.

http://code.google.com/p/dart/issues/detail?id=2348

Review URL: https://chromiumcodereview.appspot.com//9921026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6001 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 20:38:41 +00:00
floitsch@google.com 11c0923726 Fix LocalFunctionTest and update status files.
Review URL: https://chromiumcodereview.appspot.com//9916001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5964 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 01:23:23 +00:00
zundel@google.com e5ca48a7d5 Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries
Adds a new cmdline flags

--dart-sdk to point it at a directory where the dart library files are staged
--platform the name of the platform {dartium, vm, frog, dart2js}
to target with the analyzer

Committed: https://code.google.com/p/dart/source/detail?r=5885

Review URL: https://chromiumcodereview.appspot.com//9860009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5930 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 14:20:29 +00:00
efortuna@google.com ab624e53f4 Remove additional "component" tag.
Review URL: https://chromiumcodereview.appspot.com//9791034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5907 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 20:56:23 +00:00
efortuna@google.com c8e35dbeb1 Rename test.dart component to specify compiler + runtime.
Review URL: https://chromiumcodereview.appspot.com//9838068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5893 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 18:40:41 +00:00
zundel@google.com 1486f2602d Revert "Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries"
This reverts commit r5885 which works locally, but not on the builder

Review URL: https://chromiumcodereview.appspot.com//9865025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5886 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 17:04:03 +00:00
zundel@google.com b838d39acb Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries
Adds a new cmdline flags

--dart-sdk to point it at a directory where the dart library files are staged
--platform the name of the platform {dartium, vm, frog, dart2js}
to target with the analyzer

Review URL: https://chromiumcodereview.appspot.com//9860009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5885 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 16:25:54 +00:00
ahe@google.com ea393170e7 Update status file for frog.
Review URL: https://chromiumcodereview.appspot.com//9838052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5775 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-23 12:12:30 +00:00
ager@google.com 2aba281fa6 Remove backwards compatibility 'win32' name from test status files.
Using win32 instead of windows was temporary to be compatible with
the old python script. That is now gone.

R=antonm@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9817019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5736 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-21 22:06:52 +00:00
ahe@google.com 4ca586ce37 Revert "Switch frog tests to run on frogsh"
Review URL: https://chromiumcodereview.appspot.com//9732031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5667 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 23:34:54 +00:00
jmesserly@google.com 653c01192c Switch frog tests to run on frogsh
This is a patch from issue 9724008, with a one line change to corelib.status

TBR=efortuna@google.com

Committed: https://code.google.com/p/dart/source/detail?r=5661

Review URL: https://chromiumcodereview.appspot.com//9729013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5663 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 23:05:23 +00:00
jmesserly@google.com 114d8e634a revert r5661
Review URL: https://chromiumcodereview.appspot.com//9730017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5662 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 22:39:17 +00:00
jmesserly@google.com de11dc720a Switch frog tests to run on frogsh
This is a patch from issue 9724008, with a one line change to corelib.status

TBR=efortuna@google.com

Review URL: https://chromiumcodereview.appspot.com//9729013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5661 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 22:28:15 +00:00
zundel@google.com 3d07831594 Some compile time constants were not properly reporting static type warnings
http://code.google.com/p/dart/issues/detail?id=1957

Review URL: https://chromiumcodereview.appspot.com//9728006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5654 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 19:27:35 +00:00
ahe@google.com 06e1099b7c Update frog status
Review URL: https://chromiumcodereview.appspot.com//9717041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5631 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-18 22:28:58 +00:00
efortuna@google.com 3abf33b06b Revert r5607. Not all the new machines have node installed. :-(
TBR=rnystrom@google.com
Review URL: https://chromiumcodereview.appspot.com//9724009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5608 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-17 00:43:30 +00:00
efortuna@google.com 056e9e5974 Switch frogium, legium, and webdriver tests to running on frogsh, until the VM bug gets fixed.
Review URL: https://chromiumcodereview.appspot.com//9724008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5607 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-17 00:37:47 +00:00