Index: runtime/vm/compiler.cc |
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
index 49796c15a63b4624264e3f4f495f11ddf18509a1..bea582fcfff7b4440da06ac3e3f5a694d81279a8 100644 |
--- a/runtime/vm/compiler.cc |
+++ b/runtime/vm/compiler.cc |
@@ -1538,6 +1538,11 @@ RawError* Compiler::CompileAllFunctions(const Class& cls) { |
if (!func.HasCode() && |
!func.is_abstract() && |
!func.IsRedirectingFactory()) { |
+ if ((cls.is_mixin_app_alias() || cls.IsMixinApplication()) && |
+ func.HasOptionalParameters()) { |
+ // Skipping optional parameters in mixin application. |
+ continue; |
+ } |
error = CompileFunction(thread, func); |
if (!error.IsNull()) { |
return error.raw(); |