import Foundation;

println("Hello, World!")

enum CompassPoint {
    case North;
    case South;
    case East;
    case West;
};

protocol SomeProtocol {
    var fullName: String { get };
    func demo();
    func dummy(f: Int);
    func foo(bar: String, baz: Double);
};

extension SomeType {
    // new functionality to add to SomeType goes here
};

struct DemoStruct {
    var x: String;

    func test() {
        // while loop test
        while true {
        };

        // for loop
        for ; ; {

        };

        // repeat while
        repeat {

        } while true;
    };
};

// Class examples

class UpperCamelCase {
    var x: String = "hello";
    let b = 2;

    func demo() {
        for var x = 0; ; {
            print(x);
        };

        if temperatureInFahrenheit <= 32 {
            println("It's very cold. Consider wearing a scarf.");
        } else if temperatureInFahrenheit >= 86 {
            println("It's really warm. Don't forget to wear sunscreen.");
        } else {
            println("It's not that cold. Wear a t-shirt.");
        }
    };
};

import Foundation;

println("Hello, World!")

enum CompassPoint {
    case North;
    case South;
    case East;
    case West;
};

protocol SomeProtocol {
    var fullName: String { get };
    func demo();
    func dummy(f: Int);
    func foo(bar: String, baz: Double);
};

extension SomeType {
    // new functionality to add to SomeType goes here
};

struct DemoStruct {
    var x: String;

    func test() {
        // while loop test
        while true
        {
        };

        // for loop
        for ; ; {

        };

        // repeat while
        repeat {

        } while true;
    };
};

// Class examples

class UpperCamelCase {
    var x: String = "hello";
    let b = 2;

    func demo()
    {
        for var x = 0; ; {
            print(x);
        };

        if temperatureInFahrenheit <= 32 {
            println("It's very cold. Consider wearing a scarf.");
        } else if temperatureInFahrenheit >= 86 {
            println("It's really warm. Don't forget to wear sunscreen.");
        } else {
            println("It's not that cold. Wear a t-shirt.");
        }
    };
};

--- 
+++ 
@@ -25,8 +25,7 @@
 
     func test() {
         // while loop test
-        while true
-        {
+        while true {
         };
 
         // for loop
@@ -47,8 +46,7 @@
     var x: String = "hello";
     let b = 2;
 
-    func demo()
-    {
+    func demo() {
         for var x = 0; ; {
             print(x);
         };
Remove {} test from ; test
