Skip to content

Commit 9ff9009

Browse files
committed
---
yaml --- r: 342015 b: refs/heads/rxwei-patch-1 c: 118a557 h: refs/heads/master i: 342013: e9e1d3c 342011: e83284e 342007: aa7306d 341999: 2588646 341983: d929c74 341951: 4c2deab 341887: 9491508 341759: cf9612b 341503: efde5ca 340991: 70f7c1d 339967: 9abfd9b
1 parent 5fbcc1b commit 9ff9009

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: 0df29877eddcbf29c6f53bbfda23f4764950e7c0
1018+
refs/heads/rxwei-patch-1: 118a557304464a242335aac0b24e75a1d8c3c7de
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/lib/AST/Decl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5905,7 +5905,8 @@ Expr *swift::findOriginalPropertyWrapperInitialValue(VarDecl *var,
59055905

59065906
// ... producing a value of the same nominal type as the innermost
59075907
// property wrapper.
5908-
if (call->getType()->getAnyNominal() != innermostNominal)
5908+
if (!call->getType() ||
5909+
call->getType()->getAnyNominal() != innermostNominal)
59095910
return { true, E };
59105911

59115912
// Find the implicit initialValue argument.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
public struct Use { @Wrap var value: some Doubl = 1.0 }
3+
@propertyWrapper public struct Wrap { public var wrappedValue: Double }
4+

0 commit comments

Comments
 (0)