Mercurial > public > geoquiz
comparison GeoQuiz/Tests/Protocols.swift @ 3:4dbe0cd9dadc
first game prototype
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 22 Sep 2022 10:42:39 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:5b7c89bd45c3 | 3:4dbe0cd9dadc |
---|---|
1 // | |
2 // Protocols.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 21/9/22. | |
6 // | |
7 | |
8 import Foundation | |
9 | |
10 //protocol MyProtocol { | |
11 // associatedtype T | |
12 // | |
13 // var myVar: T { get set } | |
14 //} | |
15 // | |
16 //class MyClass { | |
17 // typealias T = String | |
18 // | |
19 // let myVar: T | |
20 // | |
21 // init() { | |
22 // myVar = "Hello, world!" | |
23 // } | |
24 //} |