File tree 6 files changed +395
-158
lines changed
project.xcworkspace/xcuserdata/vandadnp.xcuserdatad
6 files changed +395
-158
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ Here are the available issues:
12
12
- [ Issue 05 - The Builder Pattern and Fluent Interface] ( issue05/README.md )
13
13
- [ Issue 06 - The Swift Runtime (Part 4) - Generics] ( issue06/README.md )
14
14
- [ Issue 07 - The Swift Runtime (Part 5) - Operators] ( issue07/README.md )
15
-
15
+ - [ Issue 08 - The Swift Runtime (Part 6) - Type Casting ] ( issue08/README.md )
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 26
26
/* End PBXContainerItemProxy section */
27
27
28
28
/* Begin PBXFileReference section */
29
- 9DA78DE61A63A0920018D1DE /* dummy */ = {isa = PBXFileReference; lastKnownFileType = text; path = dummy; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.asm.i386; };
30
29
9DB1E34A1A48323C006CE680 /* swift-weekly.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "swift-weekly.app"; sourceTree = BUILT_PRODUCTS_DIR; };
31
30
9DB1E34E1A48323C006CE680 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
32
31
9DB1E34F1A48323C006CE680 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
84
83
9DB1E3561A48323C006CE680 /* Images.xcassets */,
85
84
9DB1E3581A48323C006CE680 /* LaunchScreen.xib */,
86
85
9DB1E34D1A48323C006CE680 /* Supporting Files */,
87
- 9DA78DE61A63A0920018D1DE /* dummy */,
88
86
);
89
87
path = "swift-weekly";
90
88
sourceTree = "<group>";
Original file line number Diff line number Diff line change @@ -31,23 +31,23 @@ class ViewController: UIViewController {
31
31
32
32
}
33
33
34
- class Vehicle {
35
- func id( ) -> Int {
36
- return 0xabcdefa
34
+ class Vehicle {
35
+ func id( ) -> Int {
36
+ return 0xabcdefa
37
+ }
37
38
}
38
- }
39
-
40
- class Car : Vehicle {
41
- override func id( ) -> Int {
42
- return 0xabcdefc
39
+
40
+ class Car : Vehicle {
41
+ override func id( ) -> Int {
42
+ return 0xabcdefc
43
+ }
44
+ }
45
+
46
+ func example2( ) {
47
+ let v : Vehicle = Car ( )
48
+ let c = [ v] [ 0 ] as Car
49
+ println ( c)
43
50
}
44
- }
45
-
46
- func example2( ) {
47
- let v : Vehicle = Car ( )
48
- let c = [ v] [ 0 ] as Car
49
- println ( c)
50
- }
51
51
52
52
class Bicycle : Vehicle {
53
53
override func id( ) -> Int {
@@ -73,6 +73,6 @@ func example2(){
73
73
74
74
example2 ( )
75
75
}
76
-
76
+
77
77
}
78
78
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments