Konstantin Scheglov
Konstantin Scheglov
```console scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk (aa-publish)$ d-rts Total 447 tests, of which 104 are expected to fail. 00:53 +4962: analysis_server | lsp | CompletionTest | test_completeFunctionCalls_resolve_producesCorrectEditWithoutInsertText ===== CRASH ===== si_signo=Segmentation fault: 11(11), si_code=2,...
The lint is not reported for: ```dart class A { T foo() { throw 42; } } class B extends A { @override int foo() => super.foo(); } ``` This...
e.g. `co19/LanguageFeatures/Records/type_promotion_A02_t01` as in https://github.com/dart-lang/co19/issues/1452
The specification [says](https://github.com/dart-lang/language/blob/master/accepted/future-releases/records/records-feature-specification.md#record-type-annotations): A field name that collides with the synthesized getter name of a positional field. For example: (int, $0: int) since the named field '$0' collides with the...
I speculate here, based on what I remember, check it.
``` void f1([(int, List, Set, Map, {String n}) v = const (n: "", 1, [1], {2}, {"a": 0},)]) {} ```
@jensjoha We parse it as a function typed formal parameter instead. ```dart class C { ({num n, String s}) r2; C(({int n, String s}) this.r2); } ``` parsed as ```...
So far I think that this code should be OK, but we don't resolve `T` to its bounds. ```dart num foo(T r) => r.$0; ``` The comment for `DartType _resolveTypeParameter`...
@jensjoha ```dart void f() { foo(); } ``` parsed as ``` [(21..21): A comparison expression can't be an operand of another comparison expression., (38..38): Expected an identifier.] void f() {foo...
```dart class C { int? i; C() { i = 0; } C.foo(int i) { this.i = 1; } } main() { var r = (C.new, c1: C.foo); r.$0().i; r.c1(42).i;...