blob: 9eca0510349c56f8bc862fb730f2b27e8f6af585 [file] [log] [blame]
// Copyright (c) 2022, 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.
test1(dynamic x) {
if (x case var y?) {}
if (x case int y?) {}
}
test2(num x) {
if (x case var y?) {}
if (x case int y?) {}
if (x case String y?) {}
}