Mixing record patterns and literal/enum patterns?

Tesla Zhang ice1000kotlin at foxmail.com
Mon Sep 26 23:18:24 UTC 2022


Hi, 


Is it currently possible/planned to have mixed literal or enum patterns? E.g., 


enum E { a, b }
record R(E e) {}


And use the pattern


case R(E.a) something something



Regards,
Tesla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20220926/f680ef46/attachment.htm>


More information about the amber-dev mailing list