Skip to content

Commit d55f4b3

Browse files
committed
Update in response to #2710
1 parent e13bf16 commit d55f4b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

accepted/future-releases/inline-classes/feature-specification.md

+7
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,13 @@ _is the inline type_
606606
<code>V&lt;T<sub>1</sub>, .. T<sub>s</sub>&gt;</code>,
607607
and that its static type _is an inline type_.
608608

609+
It is a compile-time error if `await e` occurs, and the static type of
610+
`e` is an inline type.
611+
612+
*We may loosen this restriction in the future, especially if we
613+
introduce a way for an inline type to be a subtype of a type of the
614+
form `Future<T>` or `FutureOr<T>`.*
615+
609616
A compile-time error occurs if an inline type declares a member whose
610617
name is declared by `Object` as well.
611618

0 commit comments

Comments
 (0)