diff options
Diffstat (limited to 'test/pretty/resource/before/PatternInstanceOf.java')
-rw-r--r-- | test/pretty/resource/before/PatternInstanceOf.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pretty/resource/before/PatternInstanceOf.java b/test/pretty/resource/before/PatternInstanceOf.java new file mode 100644 index 00000000..c957adeb --- /dev/null +++ b/test/pretty/resource/before/PatternInstanceOf.java @@ -0,0 +1,8 @@ +// version 14: +public class PatternInstanceOf { + public void foo(Object o) { + if (o instanceof String y) { + System.out.println(y); + } + } +} |