Skip to content

Commit

Permalink
Revert "remove opt-in from this PR and extraneous files"
Browse files Browse the repository at this point in the history
This reverts commit 2945fa7.
  • Loading branch information
jeffzoch committed Dec 4, 2020
1 parent 9dcdc12 commit cb5de1c
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added examples/anvil/app/.gradle/checksums/checksums.lock
Binary file not shown.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions kotlin/internal/jvm/compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def _kotlinc_options_provider_to_flags(opts):
flags.append("-Xinline-classes")
if opts.x_allow_result_return_type:
flags.append("-Xallow-result-return-type")
if opts.x_opt_in:
flags.extend(["-Xopt-in=%s" % check for check in opts.x_opt_in])
return flags

def _javac_options_provider_to_flags(opts):
Expand Down
2 changes: 1 addition & 1 deletion kotlin/internal/opts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ _KOPTS = {
"x_allow_result_return_type": struct(
args = dict(
default = False,
doc = "Enable kotlin.Result as a return type",
doc = "Enable result in return types",
),
type = attr.bool,
),
Expand Down

0 comments on commit cb5de1c

Please sign in to comment.