Skip to content

Instantly share code, notes, and snippets.

@freddi-kit
Last active May 22, 2020 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freddi-kit/3d055f95b3ef0c51b741b01b3dc00ae2 to your computer and use it in GitHub Desktop.
Save freddi-kit/3d055f95b3ef0c51b741b01b3dc00ae2 to your computer and use it in GitHub Desktop.
let values = [
0
]
let value = 0
// 自明な型エラー
print((value.0 == values.0))
// 自明な型エラー
print((value.0 == values.0) && (value.1 == values.1))
// 自明な型エラー ここらへんから遅くなる
print((value.0 == values.0) && (value.1 == values.1) && (value.2 == values.2))
print((value.0 == values.0) && (value.1 == values.1) && (value.2 == values.2) && (value.3 == values.3))
@freddi-kit
Copy link
Author

@freddi-kit
Copy link
Author

freddi-kit commented May 22, 2020

What will happen? : Xcode 11.4.1 eats huge memory when this code compiled if no limitation time to type check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment