from .base_executor import CompiledExecutor
from dmoj.executors.mixins import EmulateTerminalMixin


class Executor(CompiledExecutor, EmulateTerminalMixin):
    ext = '.swift'
    name = 'SWIFT'
    command = 'swiftc'
    test_program = 'print(readLine()!)'

    def get_compile_args(self):
        return [self.get_command(), self._code]

@@ -113,26 +113,8 @@
 tor(
-CompiledExecutor, 
 Emul
@@ -129,16 +129,34 @@
 nalMixin
+, CompiledExecutor
 ):%0A    e

Order matters, @Xyene