Test1() 'de, test() ile döndürülen Void'i başarılı bir şekilde döndürebilir. Fakat test2() 'de, hata atar. Niye ya?Neden Void'i doğrudan bir işlevde döndürüyorum?
//: Playground - noun: a place where people can play
import UIKit
import AVFoundation
func test()->Void{
print("Hello")
}
func test1(){//print Hello
return test()
}
func test2(){// throw error
return Void
}