error in Swift. “Consecutive Declarations On A Line Must Be Separated By ';'”

当输入的时候以上代码的时候出现这个错误,经过尝试发现条件表达式?前面应该有一个空格  不然会和swift中的?和 !混淆

posted @ 2016-05-12 16:22  秋棠枫眠  阅读(872)  评论(0编辑  收藏  举报