New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compiler): support a non-null postfix assert #16672

Merged
merged 1 commit into from May 11, 2017

Conversation

Projects
None yet
4 participants
@chuckjaz
Member

chuckjaz commented May 10, 2017

Template expressions can now use a post-fix ! operator
that asserts the target of the operator is not null. This is
similar to the TypeScript non-null assert operator. Expressions
generated in factories will be generated with the non-null assert
operator.

Closes: #10855

What kind of change does this PR introduce? (check one with "x")

[x] Feature

What is the new behavior?

Discussed in the commit message above.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No
feat(compiler): support a non-null postfix assert
Template expressions can now use a post-fix `!` operator
that asserts the target of the operator is not null. This is
similar to the TypeScript non-null assert operator. Expressions
generated in factories will be generated with the non-null assert
operator.

Closes: #10855

@googlebot googlebot added the cla: yes label May 10, 2017

@tbosch tbosch self-requested a review May 10, 2017

@tbosch

tbosch approved these changes May 10, 2017

@jasonaden jasonaden merged commit b9521b5 into angular:master May 11, 2017

4 checks passed

ci/circleci Your tests passed on CircleCI!
Details
cla/google All necessary CLAs are signed
code-review/pullapprove Approved by all reviewer groups.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

asnowwolf added a commit to asnowwolf/angular that referenced this pull request Aug 11, 2017

feat(compiler): support a non-null postfix assert (#16672)
Template expressions can now use a post-fix `!` operator
that asserts the target of the operator is not null. This is
similar to the TypeScript non-null assert operator. Expressions
generated in factories will be generated with the non-null assert
operator.

Closes: #10855

juleskremer added a commit to juleskremer/angular that referenced this pull request Aug 28, 2017

feat(compiler): support a non-null postfix assert (#16672)
Template expressions can now use a post-fix `!` operator
that asserts the target of the operator is not null. This is
similar to the TypeScript non-null assert operator. Expressions
generated in factories will be generated with the non-null assert
operator.

Closes: #10855
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment