blob: f120d03db120e78fba09281cdcdb77f12348d925 [file] [log] [blame]
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
void toNonNull(int? x) {
if (x != null) return;
x;
x = 0;
// TODO(paulberry): x should be known to be non-nullable now
x;
}
void toNull(int? x) {
if (x == null) return;
/*nonNullable*/ x;
x = null;
x;
}
void toUnknown_fromNotNull(int? a, int? b) {
if (a == null) return;
/*nonNullable*/ a;
a = b;
a;
}
void toUnknown_fromNull(int? a, int? b) {
if (a != null) return;
a;
a = b;
a;
}