You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In exercise "Windowing System" there is a compile issue with the test bundle. Specifically, the testMainWindow() function contains a reference to mainWindow, a Window instance that does not exist in its scope.
/mnt/exercism-iteration/Tests/WindowingSystemTests/WindowingSystemTests.swift:20:7: error: cannot find 'mainWindow' in scope
mainWindow.display(),^~~~~~~~~~
This causes the whole exercise to fail, both locally and on the online editor.
The fix is pretty straightforward, since we only need to add the following code to the function:
letmainWindow:Window={letwindow=Window()
window.title ="Main Window"
window.contents ="This is the main window"
window.resize(to:Size(width:400, height:300))
window.move(to:Position(x:100, y:100))return window
}()
The text was updated successfully, but these errors were encountered:
In exercise "Windowing System" there is a compile issue with the test bundle. Specifically, the
testMainWindow()
function contains a reference tomainWindow
, aWindow
instance that does not exist in its scope.This causes the whole exercise to fail, both locally and on the online editor.
The fix is pretty straightforward, since we only need to add the following code to the function:
The text was updated successfully, but these errors were encountered: