Commit graph

136 commits

Author SHA1 Message Date
gbracha@google.com 12422f1083 Replace subtyping with << for function type emulation.
R=jwren@google.com

Review URL: https://codereview.chromium.org//372083002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38072 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-08 21:46:38 +00:00
gbracha@google.com 339513f7e3 Eliminate redundant condition for interface inheritance.
R=brianwilkerson@google.com, paulberry@google.com

Review URL: https://codereview.chromium.org//298803014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36579 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 18:36:26 +00:00
gbracha@google.com 6ef09c32dd main function may take an argument.
R=lrn@google.com

Review URL: https://codereview.chromium.org//280473004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36450 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-21 20:57:25 +00:00
gbracha@google.com f9d663f190 Modify identity of NaNs so they are identical iff they are bit identical.
R=lrn@google.com, srdjan@google.com

Review URL: https://codereview.chromium.org//274963005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36187 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 20:06:21 +00:00
gbracha@google.com 2f93268ba1 ECMA modifications and minor fixes since.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//272723003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35928 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 18:23:07 +00:00
gbracha@google.com 926d5bb14b Clarify that dart system libs have lower priority regardless how imported.
R=johnniwinther@google.com, kasperl@google.com

Review URL: https://codereview.chromium.org//208293006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34378 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-25 18:15:48 +00:00
gbracha@google.com 80f6cd58e6 Ensure warnings are given on logical boolean expressions and for loops where booleans are expected but the type is not bool.
R=brianwilkerson@google.com, lrn@google.com

Review URL: https://codereview.chromium.org//206883003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34260 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-21 17:42:02 +00:00
gbracha@google.com 78776f9781 Changes required for ECMA standardization, plus allow void in getter return type.
R=ahe@google.com, lrn@google.com

Review URL: https://codereview.chromium.org//206743002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34201 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-20 20:23:43 +00:00
gbracha@google.com 325c2d8f53 Clarify inheritance rule so that warning is given if no suitable *concrete* method is declared yet the interface requires it.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//189163009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33498 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-10 17:24:42 +00:00
gbracha@google.com 708f25bdef Correct type rules following changes to getter behavior.
R=lrn@google.com

Review URL: https://codereview.chromium.org//186883003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33466 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-07 23:39:03 +00:00
gbracha@google.com 6d58ce9bfe Revise spec to agree with implementations for meaning of getter/variable and setter references. While the actual difference were only in a few odd cases, the new text should also be clearer.
R=hausner@google.com, lrn@google.com

Review URL: https://codereview.chromium.org//177283007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33287 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 18:37:37 +00:00
gbracha@google.com 08eb68c466 Libraries can be private.
R=ahe@google.com

Review URL: https://codereview.chromium.org//165483004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33050 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 02:42:23 +00:00
rmacnak@google.com fd3d616818 Minor spec typos.
R=gbracha@google.com

Review URL: https://codereview.chromium.org//157603005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32564 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-11 18:07:02 +00:00
gbracha@google.com 0e10e686fc Tweak text to clarify that using atype variable in an expression in a static method is a compile time error.
R=regis@google.com

Review URL: https://codereview.chromium.org//136473013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31940 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-18 00:16:11 +00:00
gbracha@google.com 39b5ace1f8 Clarified use of const in for-in loop is illegal.
R=srdjan@google.com

Review URL: https://codereview.chromium.org//140743006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31904 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-17 00:13:26 +00:00
gbracha@google.com 01e4d829f4 Correct oversight so that no warning is given if a class implements Function, has no call() method but declares its own noSuchMethod().
R=brianwilkerson@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org//137763002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31795 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 18:46:55 +00:00
gbracha@google.com 9cf58fbd7c Update spec version number to 1.1 for release.
Review URL: https://codereview.chromium.org//134523006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31715 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-10 22:08:23 +00:00
gbracha@google.com 49db6198af Clarify that part directives and headers can carry metadata.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//128613004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31622 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 19:31:22 +00:00
gbracha@google.com 55021ce277 Change specification of @proxy to be compatible with implemementation.
R=brianwilkerson@google.com, kasperl@google.com

Review URL: https://codereview.chromium.org//93153002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31433 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-02 22:14:50 +00:00
gbracha@google.com be709f52ba Version 1.0. Mainly formatting corrections.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//70383005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30211 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-12 23:05:52 +00:00
gbracha@google.com 78fe144713 Update spec for 0.8: Malformed types cause runtime errors for as, is and catch clauses, as well as checked mode subtype tests. Scripts main must be in exported namespace of library (can be exported, but import alone is not enough). Document effect of @proxy on typechecking. Metadata cannot include types.
Review URL: https://codereview.chromium.org//54903010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29775 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 22:18:32 +00:00
gbracha@google.com b2c1255be8 Clarify that sttaic getters that pair with instance setters cause warnings even if they are implicit and vice versa.
Review URL: https://codereview.chromium.org//42513003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29227 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 00:43:19 +00:00
gbracha@google.com 7ba09adde9 Revert setters for final variables.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//33893004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29131 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 21:54:53 +00:00
gbracha@google.com 413058d6a5 Correct rule for unqualified function invocations.
R=hausner@google.com

Review URL: https://codereview.chromium.org//33383002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28954 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 21:29:32 +00:00
gbracha@google.com 4e4087c426 Clarify that when a local variable hides a type before it is declared, it is stilla compile-time error, and that the VM has flexibility to report such errors at the declaration rather than the use.
R=hausner@google.com

Review URL: https://codereview.chromium.org//30123002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28896 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 23:11:58 +00:00
gbracha@google.com 47a546e035 Assert that override warnings for members for classes carry through to interfaces.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//27983002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28890 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 22:42:55 +00:00
gbracha@google.com 1b850dd4ff It's an error if to instantiate a subclass of a malbounded type,or a type variable.
R=regis@google.com

Review URL: https://codereview.chromium.org//26990005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28701 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 00:54:58 +00:00
gbracha@google.com 0d5b2c28ae Least upper bound fixes.
Review URL: https://codereview.chromium.org//27209004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28672 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 18:39:55 +00:00
gbracha@google.com da96b74f08 Update spec to 0.7. Remove obsolete/redundant rules for local variable initialization. Remove restriction on const instance creation. Liberalize type promotion rules.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//27054005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28589 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-14 16:37:42 +00:00
gbracha@google.com c33559c2e8 Update spec to 0.7. Remove obsolete/redundant rules for local variable initialization. Remove restriction on const instance creation.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//27054005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28552 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 20:56:55 +00:00
gbracha@google.com df4b9e4a9c Make sure exports treat dart: libs specially just like imports.
R=ahe@google.com

Review URL: https://codereview.chromium.org//26768004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28540 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 19:13:06 +00:00
gbracha@google.com 65077b32f4 Slight rewording of compile-time errors for switch cases, for clarity. No semantic change.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//26650006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28418 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 21:17:24 +00:00
iposva@google.com 61f1c52eed - Fix typo in grammar.
R=gbracha@google.com

Review URL: https://codereview.chromium.org//26603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28395 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 00:42:59 +00:00
gbracha@google.com 9ec531b2bb Allow distinction in typesetting between built-in identifierss and true keywords.
R=iposva@google.com

Review URL: https://codereview.chromium.org//26567004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28393 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 00:11:51 +00:00
gbracha@google.com 5a7f24cb61 Use more-specific instead of subtyping for type promotion; extend definition of more-specific to include function types so that the change works.
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//26383002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28335 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 23:33:05 +00:00
iposva@google.com 59611b2414 - Add the language specification to the repository.
R=dgrove@google.com, gbracha@google.com

Review URL: https://codereview.chromium.org//26340005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28332 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 22:43:18 +00:00