Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 10908236: Convert static error to warning for calls to toplevel methods, getters and setters. (Closed)

Created:
8 years, 3 months ago by karlklose
Modified:
8 years, 3 months ago
Reviewers:
ahe, ngeoffray
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

Convert static error to warning for calls to nonexisting toplevel methods, getters and setters. This also fixes an issue with calling nonexisting static getters/setters when an abstract field was defined. R=ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=12361

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Changed test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -9 lines) Patch
M lib/compiler/implementation/resolver.dart View 1 2 4 chunks +21 lines, -5 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 2 chunks +31 lines, -1 line 0 comments Download
M tests/language/call_nonexistent_static_test.dart View 1 2 1 chunk +89 lines, -3 lines 0 comments Download
M tests/language/language.status View 2 chunks +16 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
karlklose
8 years, 3 months ago (2012-09-13 08:27:09 UTC) #1
ngeoffray
LGTM https://chromiumcodereview.appspot.com/10908236/diff/1/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10908236/diff/1/lib/compiler/implementation/resolver.dart#newcode1300 lib/compiler/implementation/resolver.dart:1300: // TODO(karlklose): this should be reported by the ...
8 years, 3 months ago (2012-09-13 09:18:30 UTC) #2
ahe
Comments so far. https://chromiumcodereview.appspot.com/10908236/diff/1/tests/co19/co19-dart2js.status File tests/co19/co19-dart2js.status (right): https://chromiumcodereview.appspot.com/10908236/diff/1/tests/co19/co19-dart2js.status#newcode639 tests/co19/co19-dart2js.status:639: Language/05_Variables/05_Variables_A01_t03: Fail, OK # Issue 1031: ...
8 years, 3 months ago (2012-09-13 11:26:39 UTC) #3
karlklose
Thanks, Nicolas and Peter. https://chromiumcodereview.appspot.com/10908236/diff/1/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10908236/diff/1/lib/compiler/implementation/resolver.dart#newcode1300 lib/compiler/implementation/resolver.dart:1300: // TODO(karlklose): this should be ...
8 years, 3 months ago (2012-09-13 12:00:43 UTC) #4
ahe
LGTM https://chromiumcodereview.appspot.com/10908236/diff/6002/tests/language/call_nonexistent_static_test.dart File tests/language/call_nonexistent_static_test.dart (right): https://chromiumcodereview.appspot.com/10908236/diff/6002/tests/language/call_nonexistent_static_test.dart#newcode22 tests/language/call_nonexistent_static_test.dart:22: Expect.throws(() => D.hest = 1, (e) => e ...
8 years, 3 months ago (2012-09-13 12:31:14 UTC) #5
karlklose
Please take another look at the test. https://chromiumcodereview.appspot.com/10908236/diff/6002/tests/language/call_nonexistent_static_test.dart File tests/language/call_nonexistent_static_test.dart (right): https://chromiumcodereview.appspot.com/10908236/diff/6002/tests/language/call_nonexistent_static_test.dart#newcode22 tests/language/call_nonexistent_static_test.dart:22: Expect.throws(() => ...
8 years, 3 months ago (2012-09-13 13:47:26 UTC) #6
ahe
I think that test is much better on many levels. Putting each test code in ...
8 years, 3 months ago (2012-09-13 14:31:39 UTC) #7
karlklose
8 years, 3 months ago (2012-09-14 05:42:52 UTC) #8
Thank you, Peter.

Powered by Google App Engine
This is Rietveld 408576698