Browse Source

respect `--no-inline` again (fixes #9882)

Aleksandr Kuzmenko 5 years ago
parent
commit
6803582b9e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/typing/fields.ml

+ 1 - 1
src/typing/fields.ml

@@ -127,7 +127,7 @@ let field_access ctx mode f fh e pfield =
 		in
 		in
 		let default () =
 		let default () =
 			match m, mode with
 			match m, mode with
-			| MethInline, _ ->
+			| MethInline, _ when ctx.g.doinline ->
 				AKField (make_access true)
 				AKField (make_access true)
 			| MethMacro, MGet ->
 			| MethMacro, MGet ->
 				display_error ctx "Macro functions must be called immediately" pfield; normal()
 				display_error ctx "Macro functions must be called immediately" pfield; normal()