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