Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch の条件 #73

Closed
SaitoAtsushi opened this issue Nov 27, 2020 · 1 comment · Fixed by #79
Closed

switch の条件 #73

SaitoAtsushi opened this issue Nov 27, 2020 · 1 comment · Fixed by #79

Comments

@SaitoAtsushi
Copy link

ただし switch 文が使用できるのは基本型のみです。

switch の条件として使えるのは

  • 整数型
  • 列挙型
  • 整数型か列挙型へ暗黙に変換できるクラス型

ということになっています。

@rinatz
Copy link
Owner

rinatz commented Nov 27, 2020

整数型か列挙型へ暗黙に変換できるクラス型

これは盲点でした。修正します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants