質問編集履歴
1
わかりやすく修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
//ビルドが通る
|
2
|
+
|
1
3
|
```swift
|
2
4
|
|
3
5
|
func test() -> Int {
|
@@ -8,13 +10,21 @@
|
|
8
10
|
|
9
11
|
|
10
12
|
|
11
|
-
let actual = test
|
13
|
+
let actual = test
|
12
14
|
|
13
15
|
|
14
16
|
|
17
|
+
```
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
//比較しようとするとエラーを吐く
|
22
|
+
|
23
|
+
```swift
|
24
|
+
|
15
25
|
if actual == 1 { //Binary operator '==' cannot be applied to operands of type '() -> Int' and 'Int'
|
16
26
|
|
17
|
-
}
|
27
|
+
}
|
18
28
|
|
19
29
|
```
|
20
30
|
|