mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-05 08:05:24 +02:00
Bug 481070 - Improved an error message.
Change-Id: I7f5e18d723b4ba7afeff757252a50b00f48a6ac6
This commit is contained in:
parent
61b65becf9
commit
6a9dccd2b0
1 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010, 2014 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2010, 2015 Wind River Systems, Inc. and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -59,7 +59,7 @@ import org.eclipse.cdt.internal.core.parser.util.ContentAssistMatcherFactory;
|
|||
import org.eclipse.core.runtime.PlatformObject;
|
||||
|
||||
/**
|
||||
* Binding for a class type.
|
||||
* Binding for a closure type.
|
||||
*/
|
||||
public class CPPClosureType extends PlatformObject implements ICPPClassType, ICPPInternalBinding {
|
||||
private final ICPPASTLambdaExpression fLambdaExpression;
|
||||
|
@ -350,7 +350,12 @@ public class CPPClosureType extends PlatformObject implements ICPPClassType, ICP
|
|||
|
||||
@Override
|
||||
public int getVisibility(IBinding member) {
|
||||
throw new IllegalArgumentException(member.getName() + " is not a member of " + getName()); //$NON-NLS-1$
|
||||
for (ICPPMethod method : fMethods) {
|
||||
if (method.equals(member))
|
||||
return v_public;
|
||||
}
|
||||
throw new IllegalArgumentException(member.getName() + " is not a member of closure type '" //$NON-NLS-1$
|
||||
+ fLambdaExpression.getRawSignature() + "'"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
private final class ClassScope implements ICPPClassScope {
|
||||
|
|
Loading…
Add table
Reference in a new issue