Skip to content

valfer/OptionalBug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OptionalBug

Project to demonstrate (possible) bug of Swift beta 4

I have a class so defined:

class User {

	var name : String?
}

I use it in my ViewController using the code:

import UIKit

class ViewController: UIViewController {

    let user : User = User()
}

I have the compilation error

User is not constructible with ()

The error happens only if the User class and ViewController class are defined in separated files. XCode is Beta 3

About

Project to demo bug of Swift Beta 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages