Last active
May 3, 2023 18:15
-
-
Save odnoletkov/e25d8d17894a91d4d0a5a1df0d7d6c9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct Module . Module . Symbol @ available ( iOS 1 , * ) @ objc class Class < A , B > : Base where A : Protocol , B : Protocol { typealias Some = Type let variable : ( Double? , a : T ) = 1.3 let arr = [ 1 , 2 ] as [ Int ]! let dict = ["1" : 2 ,"3" : 4 ] private ( set ) var variable : Type { get { } set ( param ) { } } init ( ) { super . init( ) } func fun < A , B > ( a : A , b : ( B , String ) -> Void ) throws { await call( ) & foo = 1 + 2 ? 3 : 4 self [ \ . foo . bar ] = true as Type if #available ( iOS 1 , * ) , case . some( let b ) = c { continue } guard test is T , let a = b , c != nil else { return } do { switch try? foo( ) { case 1 , 2 : break default : throw Error . fatal } } catch let e1 as Err { } catch { } foo . baz . bar( a : 1 , b : 2 , c : 3 ) { [ a = b , unowned ( safe ) self ] a , b in a ; b c } more : { _ in } var ( _ , s ) = ( bar : 1 , baz : [ 3 , 4 ] ) _ = { ( a : A , b : B ) -> C in a ; b c } defer { f ; b } switch a { case is B : fallthrough case let t as T : break } for item in coll where item . foo? . bar! != 1 { } #if DEBUG while working { } repeat { } while true #endif } deinit { } enum Enum { case case1 , case2 , case3 case case4 ( a : Type , b : Type ) case case5 ( Type ) } subscript ( p : Type , b : Type ="123" ) -> Type { return 0 } } struct Struct { } public extension Struct where A == B { } @ _originallyDefinedIn ( module : "module" , iOS 1 ) @ _backDeploy ( before : iOS 1.1 , iOS 1 ) protocol Proto : A & B { associatedtype Assoc } infix operator +- : AdditionPrecedence |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment