Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2522. Move type-normalization weak tests to TypeSystem dir #2526

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/// T?? == T?
///
/// @description Checks that T?? == T?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// T?* == T?
///
/// @description Checks that T?* == T?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_in_lib.dart';
import 'opted_out_lib.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// T*? == T?
///
/// @description Checks that T*? == T?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_in_lib.dart';
import 'opted_out_lib.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// T** == T*
///
/// @description Checks that T** == T*
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_out_lib.dart';

class C extends LC2<String> implements LC<String> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// Null? == Null
///
/// @description Checks that Null? == Null
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class A<X> {}
class B<X> implements A<X> {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// Never? == Null
///
/// @description Checks that Null? == Null
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class A<X> {}
class B<X> implements A<X> {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// dynamic? == dynamic
///
/// @description Checks that dynamic? == dynamic
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class A<X> {}
class B<X> implements A<X> {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/// void? == void
///
/// @description Checks that void? == void
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// dynamic* == dynamic
///
/// @description Checks that dynamic* == dynamic
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_out_lib.dart';

class C extends LD implements LA<dynamic> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// void* == void
///
/// @description Checks that void* == void
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_out_lib.dart';

class C extends LV implements LA<void> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// FutureOr<T> == T if Future<T> <: T
///
/// @description Checks that if Future<T> <: T then FutureOr<T> == T
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'dart:async';

class A<X> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/// FutureOr<T> == Future<T> if T <: Future<T>
///
/// @description Checks that if T <: Future<T> then FutureOr<T> == Future<T>
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'dart:async';

class A<X> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/// X extend Never == Never
///
/// @description Checks that X extend Never == Never
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
///
/// @description Checks that if NORM(T) is a top type then NORM(FutureOr<T>) =
/// NORM(T)
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'dart:async';

class A<X> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
///
/// @description Checks that if NORM(T) is Object then
/// NORM(FutureOr<T>) = Object
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'dart:async';

class A<X> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
///
/// @description Checks that if NORM(T) is Object* then
/// NORM(FutureOr<T>) = Object*
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_out_lib.dart';

class C extends LFO implements LAO {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
///
/// @description Checks that if NORM(T) is Never then
/// NORM(FutureOr<T>) = Future<Never>
///
/// @author sgrekhov@unipro.ru
/// @issue 41632

// Requirements=nnbd-weak

import 'dart:async';

class A<X> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
///
/// @description Checks that if NORM(T) is Null then
/// NORM(FutureOr<T>) = Future<Null>?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'dart:async';

class A<X> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
/// @description Checks that otherwise NORM(FutureOr<T>) = FutureOr<NORM(T)>.
/// Test that NORM(FutureOr<T??>) == FutureOr<T?> and
/// NORM(FutureOr<Never?>) == FutureOr<Null>
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'dart:async';

class T {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/// else S?
///
/// @description Checks that if NORM(T) is a top type then NORM(T?) = NORM(T)
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/// else S?
///
/// @description Checks that if NORM(T) is Never then NORM(T?) = Null
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/// else S?
///
/// @description Checks that if NORM(T) is Never* then NORM(T?) = Null
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
/// else S?
///
/// @description Checks that if NORM(T) is Null then NORM(T?) = Null
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class A<X> {}
class B1<X> implements A<X> {}
class B2<X> implements A<X?> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
///
/// @description Checks that if NORM(T) is FutureOr<R> and R is nullable then
/// NORM(T?) = FutureOr<R>
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'dart:async';

class A<X> {}
class B1<X> implements A<X> {}
class B2<X> implements A<FutureOr<X?>?> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
///
/// @description Checks that if NORM(T) is FutureOr<R>* and R is nullable then
/// NORM(T?) = FutureOr<R>
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'dart:async';
import 'opted_in_lib.dart';
import 'opted_out_lib.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
/// else S?
///
/// @description Checks that if NORM(T) is R? then NORM(T?) = R?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class T {}
class A<X> {}
class B<X> implements A<X?> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
/// else S?
///
/// @description Checks that if NORM(T) is R* then NORM(T?) = R?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_in_lib.dart';
import 'opted_out_lib.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
/// else S?
///
/// @description Checks that if NORM(T) is S then NORM(T?) = S?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class T {}
class A<X> {}
class B<X> implements A<X?> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
/// else S*
///
/// @description Checks that if NORM(T) is a top type then NORM(T*) = NORM(T)
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_in_lib.dart';
import 'opted_out_lib.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
/// else S*
///
/// @description Checks that if NORM(T) is Null then NORM(T*) = Null
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_in_lib.dart';
import 'opted_out_lib.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
/// else S*
///
/// @description Checks that if NORM(T) is R? then NORM(T*) = R?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_in_lib.dart';
import 'opted_out_lib.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
/// else S*
///
/// @description Checks that if NORM(T) is R* then NORM(T*) = R*
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

import 'opted_out_lib.dart';

class C extends LC2<String> implements LC<String> {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
/// else X extends T
///
/// @description Checks that if NORM(T) is Never then NORM(X extends T) = Never
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class A<X> {}
class B<X extends Never> implements A<X> {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
/// else X extends T
///
/// @description Checks that if NORM(T) is NORM(X extends T)
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class T {}
class T1 extends T {}
class T2 extends T {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
///
/// @description Checks that NORM(C<T0, ..., Tn>) = C<R0, ..., Rn> where Ri is
/// NORM(Ti). Test T?? == T?
///
/// @author sgrekhov@unipro.ru

// Requirements=nnbd-weak

class T {}
class A<X> {}
class B<X> implements A<C<X?>> {}
Expand Down
Loading